芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/react-intl/lib/components/provider.d.ts
import * as React from 'react'; import { DEFAULT_INTL_CONFIG } from '../utils'; import { IntlConfig, IntlShape, Omit, IntlCache } from '../types'; interface State { /** * Explicit intl cache to prevent memory leaks */ cache: IntlCache; /** * Intl object we created */ intl?: IntlShape; /** * list of memoized config we care about. * This is important since creating intl is * very expensive */ prevConfig: OptionalIntlConfig; } export declare type OptionalIntlConfig = Omit
& Partial
; /** * Create intl object * @param config intl config * @param cache cache for formatter instances to prevent memory leak */ export declare function createIntl(config: OptionalIntlConfig, cache?: IntlCache): IntlShape; export default class IntlProvider extends React.PureComponent
{ static displayName: string; static defaultProps: Pick
; private cache; state: State; static getDerivedStateFromProps(props: OptionalIntlConfig, { prevConfig, cache }: State): Partial
| null; render(): JSX.Element; } export {};