We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
union
Current behavior
I just create my own React Native component, I have a component with mixing prop type like this:
React Native
fontSize: PropTypes.oneOfType([ PropTypes.number, PropTypes.oneOf(["XXL", "XL", "L", "M", "S", "XS", "XXS"]), ]),
but there's no list of available type in union type.
union type
To reproduce
you can see my styleguide.config.js, also the docs/ generated here
styleguide.config.js
docs/
Expected behavior
I'd like to see something like @mitsuruog type declaration at #1621 (comment)
so in my case, i expect to see "XXL" | "XL" | "L" | "M" | "S" | "XS" | "XXS" | number
"XXL" | "XL" | "L" | "M" | "S" | "XS" | "XXS" | number
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current behavior
I just create my own
React Native
component, I have a component with mixing prop type like this:but there's no list of available type in
union type
.To reproduce
you can see my
styleguide.config.js
, also thedocs/
generated hereExpected behavior
I'd like to see something like @mitsuruog type declaration at #1621 (comment)
so in my case, i expect to see
"XXL" | "XL" | "L" | "M" | "S" | "XS" | "XXS" | number
The text was updated successfully, but these errors were encountered: