mefechoel / svelte-navigator

Simple, accessible routing for Svelte
Other
504 stars 39 forks source link

Add TypeScript support #14

Closed mefechoel closed 4 years ago

mefechoel commented 4 years ago

With TypeScript now being a first class citizen in Svelte, Svelte Navigator should provide typings.

I don't think it's possible at the moment to write everything in TS, because that would require any project using Svelte Navigator to have the TS pre-processor set up as well.

There would need to be a way to strip type annotations from Svelte components and produce regular Svelte components and declaration files from it.

So to get things started, declaration files should be enough.

mefechoel commented 4 years ago

Added with 3.1.0

quantuminformation commented 4 years ago

nice