fix: ServerhandlerInfo type for newer Deno versions (#2419)
Newer Deno versions have an additional `completed` property in there. This PR allows Fresh to be used with both old and newer Deno versions without getting type errors.
This commit is contained in:
@@ -15,7 +15,8 @@ const router = (req: Request) => {
|
||||
hostname: "127.0.0.1",
|
||||
port: 80,
|
||||
},
|
||||
});
|
||||
// deno-lint-ignore no-explicit-any
|
||||
} as any);
|
||||
};
|
||||
|
||||
Deno.test("forwards slash placed at the end of url", async () => {
|
||||
|
||||
Reference in New Issue
Block a user