This repository was archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Doesn't support union types #81
Comments
The same problem is occuring to me. I'm using interface and inheritance as a workaround. It might be cool to be able to distinguish props & extended props too. |
@NathanDeveloping I am running into this as well, can you elaborate on your workaround? |
@jeffcstock Sorry for offtop, but how you styled TS docs so beauty? :) Where I can find info to make my docs as pretty as yours? Thanks. |
@YozhEzhi I believe he is using this addon: https://www.npmjs.com/package/@storybook/addon-docs |
@kennycrosby I think you're right. Thanks! |
@kennycrosby, with your example :
In this way, doc generation works. |
I also have used export const Button: React.FunctionComponent<ButtonProps & React.HTMLAttributes<HTMLButtonElement>> = (props) => {...} |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
Consider the following:
Working, no union type
export const Button = (props: ButtonProps) => { ... }
Broken when union type (&) used
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: