i18next 23.2.10 → 23.2.11

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.2.10"}
1
+ {"type":"module","version":"23.2.11"}
package/index.d.ts CHANGED
@@ -907,7 +907,7 @@ type AppendKeyPrefix<Key, KPrefix> = KPrefix extends string
907
907
  * T function declaration *
908
908
  **************************/
909
909
  export interface TFunction<Ns extends Namespace = _DefaultNamespace, KPrefix = undefined> {
910
- $TFunctionBrand: Ns;
910
+ $TFunctionBrand: $IsResourcesDefined extends true ? `${$FirstNamespace<Ns>}` : never;
911
911
  <
912
912
  Key extends ParseKeys<Ns, TOpt, KPrefix> | TemplateStringsArray,
913
913
  TOpt extends TOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "23.2.10",
3
+ "version": "23.2.11",
4
4
  "description": "i18next internationalization framework",
5
5
  "main": "./dist/cjs/i18next.js",
6
6
  "module": "./dist/esm/i18next.js",
@@ -103,12 +103,13 @@
103
103
  "watchify": "4.0.0"
104
104
  },
105
105
  "scripts": {
106
- "pretest": "npm run test:typescript && npm run test:typescript:customtypes && npm run test:typescript:fallbacktypes && npm run test:typescript:noninterop",
106
+ "pretest": "npm run test:typescript && npm run test:typescript:customtypes && npm run test:typescript:defaulttypes && npm run test:typescript:fallbacktypes && npm run test:typescript:noninterop",
107
107
  "lint": "eslint src",
108
108
  "test": "npm run lint && npm run test:new && npm run test:compat",
109
109
  "test:new": "karma start karma.conf.js --singleRun",
110
110
  "test:compat": "karma start karma.backward.conf.js --singleRun",
111
111
  "test:typescript": "tslint --project tsconfig.json",
112
+ "test:typescript:defaulttypes": "tslint --project test/typescript/default-types/tsconfig.json",
112
113
  "test:typescript:customtypes": "tslint --project test/typescript/custom-types/tsconfig.json",
113
114
  "test:typescript:fallbacktypes": "tslint --project test/typescript/fallback-types/tsconfig.json",
114
115
  "test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json",