Skip to content

Commit

Permalink
feat(types): export WithIntlProps (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
ipanasenko authored and longlho committed Jul 3, 2019
1 parent ee8a8aa commit 16d7ed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/injectIntl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type WrappedComponentProps<IntlPropName extends string = 'intl'> = {
[k in IntlPropName]: IntlShape;
};

type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & {
export type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & {
forwardedRef?: React.Ref<any>;
};

Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {default as defineMessages} from './define-messages';
export {
default as injectIntl,
Context as IntlContext,
WithIntlProps,
} from './components/injectIntl';
export {default as useIntl} from './components/useIntl';
export {default as IntlProvider} from './components/provider';
Expand Down

0 comments on commit 16d7ed9

Please sign in to comment.