We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce1b6e commit bb2d97dCopy full SHA for bb2d97d
.changeset/polite-worms-happen.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/kit': patch
3
4
+
5
+Fix argument type for RequestHandler
packages/kit/types.d.ts
@@ -90,7 +90,7 @@ export type Response = {
90
};
91
92
export type RequestHandler<Context = any, Body = unknown> = (
93
- request?: Request<Context, Body>
+ request: Request<Context, Body>
94
) => Response | Promise<Response>;
95
96
export type Load = (input: LoadInput) => LoadOutput | Promise<LoadOutput>;
0 commit comments