EuiHighlight: converted to Typescript#2681
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
chandlerprall
left a comment
There was a problem hiding this comment.
Couple changes requested, also needs a CHANGELOG.md entry
| ); | ||
| }; | ||
|
|
||
| EuiHighlight.propTypes = { |
There was a problem hiding this comment.
Remove these propTypes, they will be generated automatically from the TS definitions.
There was a problem hiding this comment.
So the goal is to move all propTypes to the component's interface? (just to be sure before I take the other convertions)
One doubt about |
Yes, the React |
chandlerprall
left a comment
There was a problem hiding this comment.
One final nit pick, otherwise this looks good
| CommonProps & { | ||
| children: string; | ||
|
|
||
| className?: string; |
There was a problem hiding this comment.
className is already provided by CommonProps and doesn't need to be re-specified, common.ts#L10
chandlerprall
left a comment
There was a problem hiding this comment.
Changes LGTM, pulled and tested locally
|
Thank you once again, @ffknob ! |
Summary
Closes #2666
Converted
EuiHighlightto Typescript.Checklist