'renderDefaultValues' does not exist in type 'Options'
JamesIves opened this issue · 3 comments
I just recently converted my Storybook instance to TypeScript, and I'm noticing type errors here when using 2.0.1
. I would expect what I have below to not produce an error as this option was introduced in 2.0
.
Looking through the installed node_modules
folder for 2.0.1, I see the following present in storybook.d.ts
:
export interface Options {
/** hides the `arg ref` label on each control */
hideArgRef?: boolean;
/** sets the custom type reference in the Custom Elements Manifest */
typeRef?: string;
/** Adds a <script> tag where a `component` variable will reference the story's component */
setComponentVariable?: boolean;
/** doesn't render attributes when their value is equal to the default value of that attribute */
renderDefaultAttributeValues?: boolean;
}
Based on what is in the branch main, renderDefaultAttributeValues
no longer exists and was replaced with renderDefaultValues
, which makes me wonder if there was an issue with the initial publishing of 2.0.0 that is causing the types for the new option to not be included in the bundle. I tried downgrading to 2.0.0
and I see the same problem.
You're right. The type is different in the package for some reason. I redeploy to see if I can get it fixed.
This should now be fixed in release 2.0.2
Looks good! Thanks