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
This SliderProps also extends FormControl which has a [key: string]: any; so it should have never errored on the id but it doesn't make its way into the export.
Typescript isn't checking the validity of props.
This causes issues where storybook examples can use invalid props and errors leak out into projects.
Example with the slider component
In the project we get an error for invalid props:
In the story no error is present:
We can even pass a typed prop using a completely incorrect type without receiving an error:
I've played around with the 3 tsconfigs and compared against the setup in the project but haven't been able to get to the bottom of it.
The text was updated successfully, but these errors were encountered: