-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
svelte:options customElement type issue #12886
Comments
The As for the type of the |
just to clarify, i think you meant |
Not really. The whole |
Describe the bug
When I use verbose configuration for custom elements, then I get unexpected typescript-related errors when running svelte-check.
Reproduction
This gives
Svelte: Parameter customElementConstructor implicitly has an any type.
Then i silence this with
@ts-ignore
:Then i extend the configuration for
svelte:options
withprops
:which gives
Type annotations can only be used in TypeScript files. (js)
for bothstringValue
andanotherValue
Expected behaviour
no errors for both of the examples
System Info
Which package is the issue about?
svelte-check
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: