svelte
svelte copied to clipboard
Svelte 5: Decorators
Describe the bug
Typescript 5.0 Stage 3 decorators should work out of the box. From the anouncement
--experimentalDecorators will continue to exist for the foreseeable future; however, without the flag, decorators will now be valid syntax for all new code
However that is not the case and it looks like ts decorators are not applied.
(Also it trips the compiler when trying to type the this value of the returned function in the REPL)
Maybe related #11339
Reproduction
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAE3VSX2uDMBD_KkeeLDgdZU9tLevTPsQyJItXFdJEcmc3Eb_7iLHFsu1Fcvf7m-Aozq1BErv3UVh1QbETp64TqeChCwNd0TCKVJDrvQ6bA2nfdgxG2bqQgkmKo7SSDTIorffhfO6t5tZZwO_OEZ60RqKkvCrTYwqjmudpA2MgQ5BBAXE766fweTC6IDeuSsq0LBeZZI_cewt3TnJHJGtnyRnMjKsTKT4HlGKzj-B0j7CStVFE8OYRGf1N_rquHVdzdSjgeTFZiLFWHEgN_zdo2lWBdb6zxFCHfCjA4tetSxLZM5LN1nvIc6DG9aYCUgMs17o91TovqubO0SbP17DSOquRM62MidxNdD88gfaKmr8l9CBJ4WUbZL-5D-nB9mUr7SGP_81RWpGKi6vac4uV2LHvcfqYfgDwEU55iAIAAA==
Logs
No response
System Info
preview
Severity
annoyance