i18next 26.5.1 → 26.5.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":"26.5.1"}
1
+ {"type":"module","version":"26.5.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "26.5.1",
3
+ "version": "26.5.2",
4
4
  "description": "i18next internationalization framework",
5
5
  "main": "./dist/cjs/i18next.js",
6
6
  "module": "./dist/esm/i18next.js",
package/typescript/t.d.ts CHANGED
@@ -700,9 +700,15 @@ interface TFunctionNonStrict<
700
700
  },
701
701
  DefaultValue extends string = never,
702
702
  >(
703
+ // `[key, defaultValue, options?]` is written as two tuples: on a failed call,
704
+ // TypeScript elaborates the error against the last of the equally matching
705
+ // members, and TypeScript 7 sorts a 3-element tuple last, so a wrong options
706
+ // object was reported as "not assignable to type 'string'" instead of the
707
+ // missing or mistyped argument.
703
708
  ...args:
704
709
  | [key: string | string[], options: TOpt & $Dictionary & { defaultValue: DefaultValue }]
705
- | [key: string | string[], defaultValue: DefaultValue, options?: TOpt & $Dictionary]
710
+ | [key: string | string[], defaultValue: DefaultValue]
711
+ | [key: string | string[], defaultValue: DefaultValue, options: TOpt & $Dictionary]
706
712
  | _KeyAndOptions<Key, $NoInfer<Ret>, ActualOptions>
707
713
  ): TFunctionReturnOptionalDetails<TFunctionProcessReturnValue<$NoInfer<Ret>, DefaultValue>, TOpt>;
708
714
  }