From 40b1bae203190d70086cf2f9654a0f065819e64b Mon Sep 17 00:00:00 2001 From: Flosch Date: Sun, 17 Jun 2018 21:27:47 +0200 Subject: [PATCH] [react-redux-i18n] Correct Translate and Localize props typings --- types/react-redux-i18n/index.d.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/types/react-redux-i18n/index.d.ts b/types/react-redux-i18n/index.d.ts index f578bee5aa..7c133448e8 100644 --- a/types/react-redux-i18n/index.d.ts +++ b/types/react-redux-i18n/index.d.ts @@ -31,14 +31,22 @@ declare module 'react-redux-i18n' { } type TranslateProps = { + className?: string; + dangerousHTML?: boolean; + style?: React.CSSProperties; + tag?: React.ReactType; value: string; - [prop: string]: string; - + [prop: string]: any; } + type LocalizeProps = { - value: string | number; + className?: string; + dangerousHTML?: boolean; dateFormat?: string; options?: Object; + style?: React.CSSProperties; + tag?: React.ReactType; + value: string | number | object; } /**