i18next 23.7.0 → 23.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"type":"module","version":"23.7.0"}
1
+ {"type":"module","version":"23.7.2"}
package/index.d.mts CHANGED
@@ -1,37 +1,46 @@
1
- import * as i18next from './index.js';
1
+ import * as i18nextMod from './index.js';
2
+ import type { $Dictionary } from './typescript/helpers.js';
2
3
 
3
4
  import type { DefaultNamespace, Namespace } from './typescript/options.js';
4
5
 
5
- export type WithT<Ns extends Namespace = DefaultNamespace> = i18next.WithT<Ns>;
6
- export type Interpolator = i18next.Interpolator;
7
- export type ResourceStore = i18next.ResourceStore;
8
- export type Formatter = i18next.Formatter;
9
- export type Services = i18next.Services;
10
- export type ModuleType = i18next.ModuleType;
11
- export type Module = i18next.Module;
12
- export type CallbackError = i18next.CallbackError;
13
- export type ReadCallback = i18next.ReadCallback;
14
- export type MultiReadCallback = i18next.MultiReadCallback;
15
- export type BackendModule = i18next.BackendModule;
16
- export type LanguageDetectorModule = i18next.LanguageDetectorModule;
17
- export type LanguageDetectorAsyncModule = i18next.LanguageDetectorAsyncModule;
18
- export type PostProcessorModule = i18next.PostProcessorModule;
19
- export type LoggerModule = i18next.LoggerModule;
20
- export type I18nFormatModule = i18next.I18nFormatModule;
21
- export type FormatterModule = i18next.FormatterModule;
22
- export type ThirdPartyModule = i18next.ThirdPartyModule;
23
- export type Modules = i18next.Modules;
24
- export type Newable<T> = i18next.Newable<T>;
25
- export type NewableModule<T extends Module> = i18next.NewableModule<T>;
26
- export type Callback = i18next.Callback;
27
- export type ExistsFunction = i18next.ExistsFunction;
28
- export type CloneOptions = i18next.CloneOptions;
29
- export type i18n = i18next.i18n;
6
+ export type WithT<Ns extends Namespace = DefaultNamespace> = i18nextMod.WithT<Ns>;
7
+ export type Interpolator = i18nextMod.Interpolator;
8
+ export type ResourceStore = i18nextMod.ResourceStore;
9
+ export type Formatter = i18nextMod.Formatter;
10
+ export type Services = i18nextMod.Services;
11
+ export type ModuleType = i18nextMod.ModuleType;
12
+ export type Module = i18nextMod.Module;
13
+ export type CallbackError = i18nextMod.CallbackError;
14
+ export type ReadCallback = i18nextMod.ReadCallback;
15
+ export type MultiReadCallback = i18nextMod.MultiReadCallback;
16
+ export type BackendModule<TOptions = object> = i18nextMod.BackendModule<TOptions>;
17
+ export type LanguageDetectorModule = i18nextMod.LanguageDetectorModule;
18
+ export type LanguageDetectorAsyncModule = i18nextMod.LanguageDetectorAsyncModule;
19
+ export type PostProcessorModule = i18nextMod.PostProcessorModule;
20
+ export type LoggerModule = i18nextMod.LoggerModule;
21
+ export type I18nFormatModule = i18nextMod.I18nFormatModule;
22
+ export type FormatterModule = i18nextMod.FormatterModule;
23
+ export type ThirdPartyModule = i18nextMod.ThirdPartyModule;
24
+ export type Modules = i18nextMod.Modules;
25
+ export type Newable<T> = i18nextMod.Newable<T>;
26
+ export type NewableModule<T extends Module> = i18nextMod.NewableModule<T>;
27
+ export type Callback = i18nextMod.Callback;
28
+ export type ExistsFunction<
29
+ TKeys extends string = string,
30
+ TInterpolationMap extends object = $Dictionary,
31
+ > = i18nextMod.ExistsFunction<
32
+ TKeys,
33
+ TInterpolationMap
34
+ >;
35
+ export type CloneOptions = i18nextMod.CloneOptions;
30
36
 
31
37
  export type * from './typescript/options.js';
32
38
  export type * from './typescript/t.js';
33
39
 
34
- export default i18next.default;
40
+ // tslint:disable-next-line:no-empty-interface
41
+ export interface i18n extends i18nextMod.i18n {}
42
+ declare const i18next: i18n;
43
+ export default i18next;
35
44
 
36
45
  export const createInstance: i18n['createInstance'];
37
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "23.7.0",
3
+ "version": "23.7.2",
4
4
  "description": "i18next internationalization framework",
5
5
  "main": "./dist/cjs/i18next.js",
6
6
  "module": "./dist/esm/i18next.js",