Skip to content

Commit 0e97944

Browse files
authored
(fix) correct request handler event type (#1929)
for SvelteKit auto-typings
1 parent b288795 commit 0e97944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte2tsx/src/helpers/sveltekit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function upserKitRouteFile(
212212
!api.hasTypeDefinition
213213
) {
214214
const pos = api.node.parameters[0].getEnd();
215-
const inserted = surround(`: import('./$types').RequestHandler`);
215+
const inserted = surround(`: import('./$types').RequestEvent`);
216216

217217
insert(pos, inserted);
218218
}

0 commit comments

Comments
 (0)