-
Notifications
You must be signed in to change notification settings - Fork 111
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
[C-3370] Fix harmony types #6694
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,14 @@ export const iconSizes = { | |
|
||
type IconSize = keyof typeof iconSizes | ||
|
||
type IconProps = { | ||
type BaseIconProps = SVGProps<SVGSVGElement> | ||
|
||
type IconProps = BaseIconProps & { | ||
color?: IconColors | ||
size?: IconSize | ||
} & SVGProps<SVGSVGElement> | ||
} | ||
|
||
export type IconComponent = ComponentType<IconProps> | ||
export type IconComponent = ComponentType<BaseIconProps | IconProps> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'm no ts wizard but do we need the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a bit weird, but its for stems icons passed into harmony components. This is either the icon with some extra props (harmony icons) or just the base props (stems). Ideally this just goes away when we migrate all the icons |
||
|
||
/** | ||
* Renders a harmony Icon component | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is always going to look like a typo to me