-
-
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
[TypeScript] Action Type #6538
Comments
@dummdidumm do we already have svelte action type definition defined in language tools? |
@tanhauhau @dummdidumm Doesn't seem so and would be a very nice addition! I was searching for one just yet and couldn't find it... PS: Many thanks for your tremendous work on the tooling. Very much appreciated! |
There's only the action return type in language tools, because svelte2tsx now just transforms |
Such a type makes sense to add. Note to self: We should filter out the global |
Is there any progress on typing for an action? |
This should be fixed in 3.46.5. (Probably should have been 3.47.0, whoops.) |
Describe the bug
An action type should be available to developers. One is available if you stay within a
*.svelte
file, but isn't present outside of it.Reproduction
Define an action in your svelte file:
and the types work.
Move the action outside to its own module, and you no longer have any types you can import to ensure action type.
Maybe something like this would work:
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: