Skip to content

Commit

Permalink
fix typing and documentation of hasLoadedNamespace
Browse files Browse the repository at this point in the history
Fixes #1723
  • Loading branch information
Christian Kruse committed Jan 26, 2022
1 parent ce01d6d commit feac9ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -1002,9 +1002,9 @@ export interface i18n {
setDefaultNamespace(ns: string): void;

/**
* Changes the default namespace.
* Checks if a namespace has been loaded.
*/
hasLoadedNamespace(ns: string, options?: Pick<InitOptions, 'fallbackLng'>): void;
hasLoadedNamespace(ns: string, options?: Pick<InitOptions, 'fallbackLng'>): boolean;

/**
* Returns rtl or ltr depending on languages read direction.
Expand Down

0 comments on commit feac9ef

Please sign in to comment.