3 ms·
I've created two project as a POC for typescript support https://github.com/farhan2106/svelte-typescript https://github.com/farhan2106/svelte-typescript https:/
by farhan_ghazali 7y ago
I've created two project as a POC for typescript support
https://github.com/farhan2106/svelte-typescript https://github.com/farhan2106/svelte-typescript
https://github.com/farhan2106/svelte-typescript-ssr https://github.com/farhan2106/svelte-typescript-ssr
Basically, I separate out the <script> & <html> section into two files. The <script> part is generated from typescript and combined later before sending it into the svelte compiler.
I am currently working on a gulp build file to streamline the process.
Let me know what you think.