react-localization
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -5,7 +5,6 @@ declare module 'react-localization' { | ||
export interface GlobalStrings<T> { | ||
[language: string]: T; | ||
export interface GlobalStrings<T> { | ||
[language: string]: T; | ||
} | ||
interface LocalizedStringsMethods { | ||
@@ -20,5 +19,7 @@ setLanguage(language: string): void; | ||
} | ||
export type LocalizedStrings<T> = LocalizedStringsMethods & T; | ||
interface LocalizedStringsFactory { | ||
new <T>(props: GlobalStrings<T>): LocalizedStringsMethods & T; | ||
new <T>(props: GlobalStrings<T>): LocalizedStrings<T>; | ||
} | ||
@@ -25,0 +26,0 @@ |
{ | ||
"name": "react-localization", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Simple module to localize the React interface using the same syntax used in the ReactNativeLocalization module, use 'npm run build' before publishing", | ||
@@ -5,0 +5,0 @@ "scripts": { |
34454
661