-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) SvelteKit typings without types (#1918)
This allows you to omit the ./$types imports and still get proper typings, by inserting them under the hood. Example: ```ts // +page.ts export function load(event) {} ---> export function load(event: import('./$types').PageLoadEvent) {} ``` This works for TS files, in Svelte files, and for svelte-check. Works in special SvelteKit files (+page/layout(.server).ts/js) for all exports (actions/csr/ssr/prerender/trailingSlash/load)
- Loading branch information
1 parent
377fbc1
commit 0374000
Showing
26 changed files
with
1,495 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.