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
Describe the bug
When a function is used in a component props, its parameter cannot have a type. in the following code, x={(d: Point) => d.x} shows an error of:
dummdidumm
changed the title
Type parameters in prop function raise unexpected token parser error
Cannot use TypeScript type annotations in template
Jun 13, 2022
Describe the bug
When a function is used in a component props, its parameter cannot have a type. in the following code,
x={(d: Point) => d.x}
shows an error of:Logs
Please include browser console and server logs around the time this bug occurred.
To Reproduce
Version
svelte-preprocess
version (Please check you can reproduce the issue with the latest release!)latest 4.10.7
The text was updated successfully, but these errors were encountered: