Skip to content

Export IconProps typedef so projects can re-use#69

Merged
carmelopullara merged 2 commits into
feathericons:masterfrom
sbecker:patch-1
Nov 17, 2020
Merged

Export IconProps typedef so projects can re-use#69
carmelopullara merged 2 commits into
feathericons:masterfrom
sbecker:patch-1

Conversation

@sbecker
Copy link
Copy Markdown
Contributor

@sbecker sbecker commented Oct 21, 2020

What this is

  • This exports the IconProps interface and Icon type, so they can be available to TypeScript components using react-feather. As is, it needs to duplicated, which is fragile because react-feather could change their props internally.

  • Renamed "Props" to "IconProps" so it is less generic and more obvious to components using it.

- exporting IconProps so it can be available to TypeScript components using react-feather - as is it needs to duplicated, which is fragile because react-feather could change
- renamed "Props" to "IconProps"
@carmelopullara carmelopullara merged commit d03640e into feathericons:master Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants