-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Describe the bug
The Svelte compiler is not handling what the parser calls, TSTypeAssertion AST nodes.
About Typescript type assertions: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions
Whenever the compiler encounters such a cast-expression, it throws the error:
Not implemented TSTypeAssertion
This is not a critical bug, but is an annoyance as sometimes a type checker is unable to deduce the true types of some expressions, which can cause several false positives. Casting is what help "patch" these issues.
Reproduction
Logs
None provided, see reproduction.
System Info
System and binaries are the same as https://svelte.dev/playground/ (console says it's running Svelte compiler version 5.23.2).
Browsers:
Brave Browser: 134.1.76.74Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels