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.
- package/dist/esm/package.json +1 -1
- package/package.json +1 -1
- package/typescript/t.d.ts +7 -1
package/dist/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"26.5.
|
|
1
|
+
{"type":"module","version":"26.5.2"}
|
package/package.json
CHANGED
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
|
|
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
|
}
|