mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-30 02:01:46 +00:00
Merge pull request #26620 from flo-sch/react-redux-i18n
[react-redux-i18n] Correct Translate and Localize props typings
This commit is contained in:
Vendored
+11
-3
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user