We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the example svelte file Test.svelte with the contents:
Test.svelte
<script> export const x = () => console.log('works') </script>
it generates
/// <reference types="svelte" /> import { SvelteComponentTyped } from "svelte"; export interface TestProps { } export default class Test extends SvelteComponentTyped< TestProps, {}, {} > { x: () => console.log('works'); } ```
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
You will need to manually type this.
<script> /** @type {() => void} */ export const x = () => console.log('works') </script>
No branches or pull requests
In the example svelte file
Test.svelte
with the contents:it generates
The text was updated successfully, but these errors were encountered: