mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #30653 from LKay/lkay/react-intl-type
Fix type for react-intl HoC
This commit is contained in:
Vendored
+2
-2
@@ -29,8 +29,8 @@ declare namespace ReactIntl {
|
||||
withRef?: boolean;
|
||||
}
|
||||
|
||||
function injectIntl<P extends InjectedIntlProps>(component: React.ComponentType<P>, options?: InjectIntlConfig):
|
||||
React.ComponentClass<Pick<P, Exclude<keyof P, keyof InjectedIntlProps>>> & { WrappedComponent: React.ComponentType<P> };
|
||||
function injectIntl<P>(component: React.ComponentType<P & InjectedIntlProps>, options?: InjectIntlConfig):
|
||||
React.ComponentClass<Pick<P, Exclude<keyof P, keyof InjectedIntlProps>>> & { WrappedComponent: React.ComponentType<P & InjectedIntlProps> };
|
||||
|
||||
function addLocaleData(data: Locale[] | Locale): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user