-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Dies when a function is exported as a prop #47
Labels
bug
Something isn't working
Comments
This is the console output: > rollup -c
src/index.js → ./dist/index.mjs, ./dist/index.js...
created ./dist/index.mjs, ./dist/index.js in 329ms
SyntaxError: ';' expected. (19:25)
17 |
18 |
> 19 | x: () => console.log('works');
| ^
20 | }
SyntaxError: ';' expected. (19:25)
17 |
18 |
> 19 | x: () => console.log('works');
| ^
20 | }
created TypeScript definitions.
created TypeScript definitions. |
You will need to manually type this. <script>
/** @type {() => void} */
export const x = () => console.log('works')
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the example svelte file
Test.svelte
with the contents:it generates
The text was updated successfully, but these errors were encountered: