UNPKG

855 BTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React from 'react';
3export interface LocaleProviderProps {
4 locale: {
5 Pagination?: object;
6 DatePicker?: object;
7 DatePickerView?: object;
8 InputItem?: object;
9 };
10 children?: React.ReactElement<any>;
11}
12export default class LocaleProvider extends React.Component<LocaleProviderProps, any> {
13 static propTypes: {
14 locale: PropTypes.Requireable<object>;
15 };
16 static childContextTypes: {
17 antLocale: PropTypes.Requireable<object>;
18 };
19 getChildContext(): {
20 antLocale: {
21 exist: boolean;
22 Pagination?: object | undefined;
23 DatePicker?: object | undefined;
24 DatePickerView?: object | undefined;
25 InputItem?: object | undefined;
26 };
27 };
28 render(): React.ReactElement<any>;
29}