Suggestion: Add union type for typescript #503
danieljarrett74
started this conversation in
Ideas
Replies: 1 comment
-
yes please, I'd also appreciate this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to make the suggestion of adding a union type for typescript that includes all icons. This way we can define fields for our component properties that restrict to that union type. Would that work?
export interface IButtonProps extends React.ButtonHTMLAttributes {
icon: HeroIcon | undefined;
}
Beta Was this translation helpful? Give feedback.
All reactions