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
I use namespace to define common types like below:
export declare namespace TypeAttributes { type Color = | "primary" | "secondary" | "success" | "warning" | "danger" | "info"; }
and use it in type definition.
export type ComponentProps = { /** * The color to apply to component */ color?: TypeAttributes.Color; }
it shows: Type: TypeAttributes.Color instead of "union, one of xxxxx".
any idea how to make this work?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use namespace to define common types like below:
and use it in type definition.
it shows: Type: TypeAttributes.Color instead of "union, one of xxxxx".
any idea how to make this work?
The text was updated successfully, but these errors were encountered: