-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Children props type strange format #777
Comments
Please make a demo project that we can debug based on this repo: https://github.com/styleguidist/example |
Here is my files styleguide.config.js
TreeNode
webpack.config.js
I tried to change the type of the children props from TreeNode class to a string[], but it didn't solve the display as you can see from the screen above. |
Seems like it's a Typescript behavior microsoft/TypeScript#6471. I will close this issue as it don't belong here, thanks for taking time checking this issue. |
When generating my props, if I try to use the
children
props and define a type on it, I get a strange type format on it.Is there a way to fix that or is it just not permitted to use the children props as something seems to overwrite the preview class type with some sort of binary comparison.
The text was updated successfully, but these errors were encountered: