[8.0 QA] react-docgen as TS default #25686
Replies: 4 comments 3 replies
-
Project: MealDrop Types of the property Details and reproduction are provided in this issue: |
Beta Was this translation helpful? Give feedback.
-
Project: MealDrop The automigration message has a few typos and seems confusing. At least to me, I was not sure what the migration wanted me to do. Seems more like a "do X or do Y" rather than a "yes/no" question to me.
which is dramatically
though we recommend giving "react-docgen" a try for a much faster dev experience. Repro:
|
Beta Was this translation helpful? Give feedback.
-
Project: MealDrop Not related to For instance, without const config: StorybookConfig = {
typescript: {
reactDocgen: 'react-docgen-typescript',
},
} The types of all controls are inferred correctly With an empty object const config: StorybookConfig = {
typescript: {
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: { },
},
} Notice that everything becomes "object" I'd assume that users don't have to know which are the default values, so that if they set a single option such as Repro:
|
Beta Was this translation helpful? Give feedback.
-
Here's the default: storybook/code/lib/core-server/src/presets/common-preset.ts Lines 140 to 146 in 5e3532d but we don't deeply merge when presets values are objects. |
Beta Was this translation helpful? Give feedback.
-
react-docgen as TS default
Feature owner: @shilman
Please comment in this discussion thread for any bug report and feedback for this feature as you test out Storybook 8. Kindly adhere to the following format:
Feature owner should triage the comments here frequently and open issues as needed.
Beta Was this translation helpful? Give feedback.
All reactions