-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: (Storybook v7) React autodocs incorrectly generating with TypeScript >= v5.1.3 #23418
Comments
Thanks for reporting @Francois-Esquire ! We'll look into a fix for this. In the meantime, if you'd like to experiment yourself, you can customize the More info: https://storybook.js.org/docs/react/api/main-config-typescript#reactdocgentypescriptoptions |
Appreciate it @shilman! Going to give |
Hi @shilman, took a deeper dive and narrowed it down to the {
defaultValue: null,
description: '',
name: 'key',
parent: {
fileName: '<root>/node_modules/@types/react/index.d.ts',
name: 'Attributes'
},
declarations: [
{
fileName: '<root>/node_modules/@types/react/index.d.ts',
name: 'Attributes'
}
],
required: false,
type: { name: 'Key | null | undefined' }
} compared to: {
defaultValue: null,
description: '',
name: 'key',
parent: undefined,
declarations: [],
required: false,
type: { name: 'Key | null | undefined' }
} Pulling on this thread further, it led me to |
@Francois-Esquire Thank you so much for the deep dive! Since the issue seems to be related to |
@valentinpalkovic for sure 👍 |
Can you try out the following canary in your project and let me know whether it resolves any of your issues (or generates new ones)? We're looking to switch the default docgen from Note that the change is currently only for Vite projects Instructions in the "how to test" section: 👉 #23825 |
Describe the bug
Hi there, we're seeing a difference in API document generation of component props. HTML attributes are being added. See below. Is this a known issue?
Current:
Prior to TypeScript v5:
To Reproduce
Please see open PR below:
zendeskgarden/react-components#1554
and the staging deployment where we see the issue:
https://64ad6f40bf19b7052b7f32ba--zendeskgarden-react-components.netlify.app/?path=/docs/packages-accordions-accordion--docs
For the expected results, see:
https://zendeskgarden.github.io/react-components
System
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: