You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const type parameters are a feature added in Typescript 5.0.
However, trying to use them in a .svelte or .svelte.ts file results in Unexpected keyword 'const' https://svelte.dev/e/js_parse_error
This is presumably a missing feature in acorn-typescript, and as such blocked by #13439
Reproduction
<scriptlang=ts>
function test<constT>(value:T) {returnvalue; }
</script>
<h1>Hello {test("World")}!</h1>
Describe the bug
const
type parameters are a feature added in Typescript 5.0.However, trying to use them in a .svelte or .svelte.ts file results in
Unexpected keyword 'const' https://svelte.dev/e/js_parse_error
This is presumably a missing feature in
acorn-typescript
, and as such blocked by #13439Reproduction
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: