From c124d2f2107a029775c1bf64f9dafa3a30a3751b Mon Sep 17 00:00:00 2001 From: anwalkers Date: Tue, 8 Nov 2016 11:07:23 -0800 Subject: [PATCH] add i18next.options to interface --- i18next/i18next-tests.ts | 2 ++ i18next/index.d.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/i18next/i18next-tests.ts b/i18next/i18next-tests.ts index f781fe7be9..23c67cc742 100644 --- a/i18next/i18next-tests.ts +++ b/i18next/i18next-tests.ts @@ -60,5 +60,7 @@ i18n.t('helloWorld', { defaultValue: 'default', count: 10 }); + +const options:i18n.Options = i18n.options; const currentLanguage:string = i18n.language; const userLanguageCodes:string[] = i18n.languages; diff --git a/i18next/index.d.ts b/i18next/index.d.ts index 76f0073788..de1a572f0d 100644 --- a/i18next/index.d.ts +++ b/i18next/index.d.ts @@ -119,6 +119,8 @@ declare namespace i18n { createInstance(options?:Options, callback?:(err:any, t:TranslationFunction) => void):I18n; cloneInstance(options?:Options, callback?:(err:any, t:TranslationFunction) => void):I18n; + + options: Options; } }