97 ms·
How come there is no TypeScript support, but in the official GitHub repo (https://github.com/sveltejs/svelte https://github.com/sveltejs/svelte) they state: "T
by snak 7y ago
How come there is no TypeScript support, but in the official GitHub repo (https://github.com/sveltejs/svelte https://github.com/sveltejs/svelte) they state:
"The compiler is written in TypeScript, but don't let that put you off — it's basically just JavaScript with type annotations."
- pcr0 7y agoWriting a JS compiler in TS is easier than writing a TS compiler in TS, since TypeScript is a superset of JavaScript.
- swyx 7y agoits written with typescript, but inside of svelte components, it doesnt support typescript authoring by default. there are third party ways to preprocess typescript though, just not officially supported.