[Bug]: type error while importing svelte 5
component due to recent change in svelte-check
#29308
Labels
svelte 5
component due to recent change in svelte-check
#29308
Describe the bug
Due to recent change in
svelte-check
v4.0.3, following type error occurs while importing Svelte 5 component in svelte storybook file. This also ends up causing multiple type errors in the story args definition.As per PR, In svelte 5, components are functions. Hence with this PR only function type is exported in runes mode.
I tried to supply svelte 5 component to
Meta
asMeta<ReturnType<typeof Button>>
. However, it throws following error after that change.Reproduction link
https://codesandbox.io/p/devbox/8p9rrz
Reproduction steps
svelte-check
is reverted to4.0.2
, svelte-check passes with no errors.System
Additional context
No response
The text was updated successfully, but these errors were encountered: