Skip to content

Commit

Permalink
fix(react-intl): add children prop type to IntlProvider (#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrocat101 committed Jun 15, 2020
1 parent 90fbd5f commit 94db34b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-intl/src/components/provider.tsx
Expand Up @@ -165,7 +165,9 @@ export function createIntl(
}

export default class IntlProvider extends React.PureComponent<
OptionalIntlConfig,
// Exporting children props so it is composable with other HOCs.
// See: https://github.com/formatjs/formatjs/issues/1697
React.PropsWithChildren<OptionalIntlConfig>,
State
> {
static displayName = 'IntlProvider';
Expand Down

0 comments on commit 94db34b

Please sign in to comment.