-
Notifications
You must be signed in to change notification settings - Fork 12
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
Typescript Declaration needs updating for Svelte 4 #20
Comments
Is this relevent to my error?
|
I have added your declaration to my global.d.ts file, and it does remove my type error. Thanks! |
No problem! Hopefully someone can update it soon, if other people are having the same issue... |
Does this need to be changed within the package? Sorry, I haven't been following svelte lately. |
I'm not really sure what you mean, but I think it's just the README that needs updating..? |
Will do, thanks! I wasn't sure if src/global.d.ts was interfering and causing issues. |
svelte-check
will throw an error at the moment if you try to use events with dom elements with Svelte 4, I think the typescript declaration now needs to look more like this:(
svelteHTML
namespace instead of 'svelte.JSX' and 'on:event' instead of 'onevent', this seems to work for me)The text was updated successfully, but these errors were encountered: