Merge pull request #30653 from LKay/lkay/react-intl-type

Fix type for react-intl HoC
This commit is contained in:
Benjamin Lichtman
2018-11-20 07:19:04 -08:00
committed by GitHub
+2 -2
View File
@@ -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;