Skip to content

Commit

Permalink
(fix) correct request handler event type (#1929)
Browse files Browse the repository at this point in the history
for SvelteKit auto-typings
  • Loading branch information
dummdidumm authored Mar 10, 2023
1 parent b288795 commit 0e97944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte2tsx/src/helpers/sveltekit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function upserKitRouteFile(
!api.hasTypeDefinition
) {
const pos = api.node.parameters[0].getEnd();
const inserted = surround(`: import('./$types').RequestHandler`);
const inserted = surround(`: import('./$types').RequestEvent`);

insert(pos, inserted);
}
Expand Down

0 comments on commit 0e97944

Please sign in to comment.