-
Notifications
You must be signed in to change notification settings - Fork 842
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
Convert EuiFlex* and EuiDescriptionList* to typescript #1365
Conversation
…onverted unit test helpers to typescript.
5392222
to
31c6ca9
Compare
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.
Looks fine, just a few comments and tweaks.
Blocked by #1383 for default props. |
export type EuiDescriptionListTextStyle = keyof typeof textStylesToClassNameMap; | ||
|
||
export interface EuiDescriptionListProps { | ||
listItems?: Array<{ title: ReactNode; description: ReactNode }>; |
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.
Is it worth wrapping the ReactNode
uses with NonNullable
?
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.
Fantastic, and a great catch.
Co-Authored-By: chandlerprall <[email protected]>
Co-Authored-By: chandlerprall <[email protected]>
Summary
null
and `undefined in TS unions to proptypes generatorChecklist
- [ ] This was checked in mobile- [ ] This was checked in IE11- [ ] This was checked in dark mode- [ ] Documentation examples were added- [ ] This was checked for breaking changes and labeled appropriately- [ ] Jest tests were updated or added to match the most common scenarios- [ ] This was checked against keyboard-only and screenreader scenarios- [ ] This required updates to Framer X components