Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte 5: Decorators #11397

Open
fcrozatier opened this issue Apr 30, 2024 · 0 comments
Open

Svelte 5: Decorators #11397

fcrozatier opened this issue Apr 30, 2024 · 0 comments

Comments

@fcrozatier
Copy link
Contributor

fcrozatier commented Apr 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant