react-intl-phraseapp
Version:
The In-Context-Editor for react using react-intl
6 lines (5 loc) • 458 B
TypeScript
import { injectIntl as injectIntlReact, WrappedComponentProps, WithIntlProps } from 'react-intl';
import React from 'react';
export declare function injectIntl<IntlPropName extends string = 'intl', P extends WrappedComponentProps<IntlPropName> = WrappedComponentProps<any>>(WrappedComponent: React.ComponentType<P>, options?: Parameters<typeof injectIntlReact>[1]): React.ComponentType<WithIntlProps<P>> & {
WrappedComponent: typeof WrappedComponent;
};