You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is not assignable to type Props
Types of property label are incompatible.
Type string | undefined is not assignable to type string
Type undefined is not assignable to type string
Expected behavior
this error shouldn't exist, or at least it should be addressed in the docs how to avoid it
Screenshots and/or logs
The text was updated successfully, but these errors were encountered:
Hi, sorry you're encountering this issue. Is known one and a duplicate of #216. There's a temporary workaround inside.
We're in the process of rethinking the setTemplate API (discussion on the channel for Svelte in Storybook Discord), and along with it those type helpers - Args & StoryContext.
Describe the bug
Typescript support - types in Args are optional when types of the Component aren't
Steps to reproduce the behavior
create a clean Sveltekit project with TS
npx sv create my-app
add storybook to the project
npx storybook@latest init
then go to the story file
src/stories/Button.stories.svelte
that comes with the storybook installationand add a template with the typing like it's shown in this lib's readme:
then run the check command from package.json
Expected behavior
this error shouldn't exist, or at least it should be addressed in the docs how to avoid it
Screenshots and/or logs
The text was updated successfully, but these errors were encountered: