Fix type for react-intl HoC

This commit is contained in:
Karol Janyst
2018-11-19 18:06:42 +09:00
parent 80b8a35848
commit cdd0c96d0a
+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;