Skip to content

Commit

Permalink
feat: add fallback handler to auto-types
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Sep 19, 2023
1 parent bf99a93 commit fe54b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/svelte2tsx/src/helpers/sveltekit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ function upserKitRouteFile(
insertApiMethod('DELETE');
insertApiMethod('OPTIONS');
insertApiMethod('HEAD');
insertApiMethod('fallback');

return { addedCode, originalText: source.getFullText() };
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ export const kitExports: Record<
DELETE: createApiExport('DELETE'),
OPTIONS: createApiExport('OPTIONS'),
HEAD: createApiExport('HEAD'),
fallback: createApiExport('fallback'),
// param matching
match: {
allowedIn: [],
Expand Down

0 comments on commit fe54b84

Please sign in to comment.