react-localize-redux
Advanced tools
Comparing version 2.17.1 to 2.17.2
@@ -1,2 +0,2 @@ | ||
import { ReactElement, ReactNode } from 'react'; | ||
import { ReactElement, ReactNode, Component as ReactComponent } from 'react'; | ||
import { ComponentClass, Component } from 'react-redux'; | ||
@@ -55,2 +55,7 @@ | ||
export type TranslateChildFunction = ( | ||
translate: TranslateFunction, | ||
activeLanguage: Language, | ||
languages: Language[]) => any; | ||
export interface TranslateProps { | ||
@@ -60,3 +65,3 @@ id?: string, | ||
data?: TranslatePlaceholderData, | ||
children: ReactNode|TranslateChildFunction | ||
children?: any|TranslateChildFunction | ||
} | ||
@@ -71,3 +76,3 @@ | ||
export type Translate = (value: TranslateValue, data?: TranslatePlaceholderData, options?: Options) => LocalizedElement|LocalizedElementMap; | ||
export type TranslateFunction = (value: TranslateValue, data?: TranslatePlaceholderData, options?: Options) => LocalizedElement|LocalizedElementMap; | ||
@@ -99,3 +104,3 @@ type InitializePayload = { | ||
currentLanguage: string, | ||
translate: Translate | ||
translate: TranslateFunction | ||
}; | ||
@@ -150,3 +155,3 @@ | ||
export function getTranslate(state: LocaleState): Translate; | ||
export function getTranslate(state: LocaleState): TranslateFunction; | ||
@@ -157,2 +162,2 @@ export function localize(Component: Component<any>, slice?: string, getStateSlice?: GetSliceStateFn): (state: Object|LocaleState) => ComponentClass<LocalizeProps>; | ||
export default class TranslateComponent extends Component<TranslateProps> {} | ||
export default class Translate extends ReactComponent<TranslateProps> {} |
@@ -1,2 +0,2 @@ | ||
import { ReactElement, ReactNode } from 'react'; | ||
import { ReactElement, ReactNode, Component as ReactComponent } from 'react'; | ||
import { ComponentClass, Component } from 'react-redux'; | ||
@@ -55,2 +55,7 @@ | ||
export type TranslateChildFunction = ( | ||
translate: TranslateFunction, | ||
activeLanguage: Language, | ||
languages: Language[]) => any; | ||
export interface TranslateProps { | ||
@@ -60,3 +65,3 @@ id?: string, | ||
data?: TranslatePlaceholderData, | ||
children: ReactNode|TranslateChildFunction | ||
children?: any|TranslateChildFunction | ||
} | ||
@@ -71,3 +76,3 @@ | ||
export type Translate = (value: TranslateValue, data?: TranslatePlaceholderData, options?: Options) => LocalizedElement|LocalizedElementMap; | ||
export type TranslateFunction = (value: TranslateValue, data?: TranslatePlaceholderData, options?: Options) => LocalizedElement|LocalizedElementMap; | ||
@@ -99,3 +104,3 @@ type InitializePayload = { | ||
currentLanguage: string, | ||
translate: Translate | ||
translate: TranslateFunction | ||
}; | ||
@@ -150,3 +155,3 @@ | ||
export function getTranslate(state: LocaleState): Translate; | ||
export function getTranslate(state: LocaleState): TranslateFunction; | ||
@@ -157,2 +162,2 @@ export function localize(Component: Component<any>, slice?: string, getStateSlice?: GetSliceStateFn): (state: Object|LocaleState) => ComponentClass<LocalizeProps>; | ||
export default class TranslateComponent extends Component<TranslateProps> {} | ||
export default class Translate extends ReactComponent<TranslateProps> {} |
{ | ||
"name": "react-localize-redux", | ||
"version": "2.17.1", | ||
"version": "2.17.2", | ||
"description": "Localization library for React/Redux", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
265768
5490