Skip to content

Commit 16d7ed9

Browse files
ipanasenkolonglho
authored andcommitted
feat(types): export WithIntlProps (#1350)
1 parent ee8a8aa commit 16d7ed9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/injectIntl.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type WrappedComponentProps<IntlPropName extends string = 'intl'> = {
2929
[k in IntlPropName]: IntlShape;
3030
};
3131

32-
type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & {
32+
export type WithIntlProps<P> = Omit<P, keyof WrappedComponentProps> & {
3333
forwardedRef?: React.Ref<any>;
3434
};
3535

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export {default as defineMessages} from './define-messages';
1010
export {
1111
default as injectIntl,
1212
Context as IntlContext,
13+
WithIntlProps,
1314
} from './components/injectIntl';
1415
export {default as useIntl} from './components/useIntl';
1516
export {default as IntlProvider} from './components/provider';

0 commit comments

Comments
 (0)