Incorrect types for __sveltets_2_SvelteTransitionReturnType
?
#2686
Labels
bug
Something isn't working
__sveltets_2_SvelteTransitionReturnType
?
#2686
Describe the bug
I created a custom transition that returns a function of type
(options: { direction?: 'in' | 'out' }) => TransitionConfig
, which Svelte supports. See, https://github.com/sveltejs/svelte/blob/[email protected]/packages/svelte/src/internal/client/types.d.ts#L131Apparently, in VS Code, I get the following error:
This shouldn't be the case though, since Svelte supports the optional
{ direction: 'in' | 'out' }
parameter.Reproduction
Here's a simplified example:
The
transition:exampleTransition
above will be highlighted as an error.Expected behaviour
As I said before, that shouldn't be the case, since Svelte supports the
{ direction: 'in' | 'out' }
parameter.System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: