Merge pull request #26620 from flo-sch/react-redux-i18n

[react-redux-i18n] Correct Translate and Localize props typings
This commit is contained in:
Nathan Shively-Sanders
2018-06-22 16:39:45 -07:00
committed by GitHub
+11 -3
View File
@@ -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;
}
/**