eversport / intl-codegen

generate code and type definitions from translations
MIT License
15 stars 1 forks source link

Export Props for `withIntl` #10

Closed treylon closed 6 years ago

treylon commented 6 years ago

Export Props for withIntl to allow the following pattern:

class MyComponents extends React.Component<WithIntl>

instead of

class MyComponents extends React.Component<{ intl: Intl }>