Fix i18next dir() return type to be "ltr" | "rtl" (#27069)

This commit is contained in:
Emil Laine
2018-07-10 09:51:09 -07:00
committed by Ryan Cavanaugh
parent 68a7fcd294
commit bc51af9960
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ declare namespace i18next {
/**
* Returns rtl or ltr depending on languages read direction.
*/
dir(lng?: string): void;
dir(lng?: string): "ltr" | "rtl";
/**
* Exposes interpolation.format function added on init.
+1 -1
View File
@@ -128,7 +128,7 @@ declare namespace i18n {
loadLanguages(lngs: string[], callback?: () => void): void;
dir(lng?: string): string;
dir(lng?: string): "ltr" | "rtl";
createInstance(options?: Options, callback?: (err: any, t: TranslationFunction) => void): I18n;