From bcbdd12ce1b2ddf7a54ce57e38dc9a3f35353d65 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Tue, 21 Nov 2017 19:03:42 +0800 Subject: [PATCH] Fix implicit any error for LocalProvider --- components/locale-provider/LocaleReceiver.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/locale-provider/LocaleReceiver.tsx b/components/locale-provider/LocaleReceiver.tsx index cce8356168..1c35492a7e 100644 --- a/components/locale-provider/LocaleReceiver.tsx +++ b/components/locale-provider/LocaleReceiver.tsx @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; export interface LocaleReceiverProps { componentName: string; defaultLocale: object | Function; - children: (locale, localeCode?) => React.ReactElement; + children: (locale: object, localeCode?: string) => React.ReactElement; } export interface LocaleReceiverContext {