Orta Therox, making the big announcement on behalf of the Svelte team:
Up until now TypeScript was usable with Svelte, but not officially supported by the project. What does that official support look like?
- You can use TypeScript inside your
<script>blocks — just add the
- Components with TypeScript can be type-checked with the
- You get autocompletion hints and type-checking as you’re writing components, even in expressions inside markup
- TypeScript files understand the Svelte component API — no more red squiggles when you import a
.sveltefile into a
I know a lot of people have been waiting for this. Congrats to all involved on a big release!