Permalink
Browse files

Updated typescript definition

  • Loading branch information...
stefalda committed Apr 5, 2018
1 parent 6b69e62 commit 38d730f8df712bd5f861b4150414a1f488a276fd
Showing with 10 additions and 6 deletions.
  1. +1 −1 lib/LocalizedStrings.d.ts
  2. +9 −5 package.json
@@ -31,7 +31,7 @@ declare module 'react-native-localization' {
* Use example:
* strings.formatString(strings.question, strings.bread, strings.butter)
*/
formatString<T extends Formatted>(str: string, ...values: Array<T | FormatObject<T>>): Array<string | T>;
formatString<T extends Formatted>(str: string, ...values: Array<T | FormatObject<T>>): Array<string | T> | string;
/**
* Return an array containing the available languages passed as props in the constructor
View
@@ -13,11 +13,15 @@
"url": "https://github.com/stefalda/ReactNativeLocalization.git"
},
"keywords": [
"react-component",
"react-native",
"ios",
"localization",
"internationalization"
"internationalization",
"javascript",
"typescript",
"ios",
"android",
"react",
"react-native",
"react-component"
],
"author": "Stefano Falda <stefano.falda@gmail.com> (http://www.babisoft.com)",
"license": "MIT",
@@ -26,7 +30,7 @@
},
"homepage": "https://github.com/stefalda/ReactNativeLocalization",
"dependencies": {
"react-localization": "^1.0.7",
"react-localization": "^1.0.8",
"react": "^16.0.0"
},
"devDependencies": {

0 comments on commit 38d730f

Please sign in to comment.