UNPKG

chowa

Version:

UI component library based on React

32 lines (31 loc) 932 B
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import * as PropTypes from 'prop-types'; import { I18nInterface } from './context'; export interface I18nReceiverProps { module: string; children: (i18n: any) => React.ReactNode; [key: string]: any; } export interface I18nReceiverContext { egeI18n: I18nInterface; } declare class I18nReceiver extends React.PureComponent<I18nReceiverProps, any> { static propTypes: { module: PropTypes.Validator<string>; children: PropTypes.Requireable<(...args: any[]) => any>; }; static contextType: React.Context<{ egeI18n: I18nInterface; }>; context: I18nReceiverContext; render(): {}; } export default I18nReceiver;