mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
Fix i18next dir() return type to be "ltr" | "rtl" (#27069)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
68a7fcd294
commit
bc51af9960
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user