i18next 26.0.1 → 26.0.3
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/index.d.ts +1 -0
- package/package.json +1 -1
- package/typescript/t.d.ts +12 -4
package/dist/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"26.0.
|
|
1
|
+
{"type":"module","version":"26.0.3"}
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
package/typescript/t.d.ts
CHANGED
|
@@ -400,7 +400,9 @@ interface TFunctionStrict<
|
|
|
400
400
|
options?: TOpt &
|
|
401
401
|
InterpolationMap<Ret> & {
|
|
402
402
|
context?: Key extends string
|
|
403
|
-
?
|
|
403
|
+
? unknown extends TOpt['context']
|
|
404
|
+
? TOpt['context']
|
|
405
|
+
: ContextOfKey<Key, Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>>
|
|
404
406
|
: never;
|
|
405
407
|
},
|
|
406
408
|
): TFunctionReturnOptionalDetails<TFunctionProcessReturnValue<$NoInfer<Ret>, never>, TOpt>;
|
|
@@ -414,7 +416,9 @@ interface TFunctionStrict<
|
|
|
414
416
|
options?: TOpt &
|
|
415
417
|
InterpolationMap<Ret> & {
|
|
416
418
|
context?: Key extends string
|
|
417
|
-
?
|
|
419
|
+
? unknown extends TOpt['context']
|
|
420
|
+
? TOpt['context']
|
|
421
|
+
: ContextOfKey<Key, Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>>
|
|
418
422
|
: never;
|
|
419
423
|
},
|
|
420
424
|
): TFunctionReturnOptionalDetails<TFunctionProcessReturnValue<$NoInfer<Ret>, never>, TOpt>;
|
|
@@ -431,12 +435,16 @@ interface TFunctionNonStrict<
|
|
|
431
435
|
const ActualOptions extends Omit<TOpt, 'context'> &
|
|
432
436
|
InterpolationMap<Ret> & {
|
|
433
437
|
context?: Key extends string
|
|
434
|
-
?
|
|
438
|
+
? unknown extends TOpt['context']
|
|
439
|
+
? TOpt['context']
|
|
440
|
+
: ContextOfKey<Key, Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>>
|
|
435
441
|
: never;
|
|
436
442
|
} = TOpt &
|
|
437
443
|
InterpolationMap<Ret> & {
|
|
438
444
|
context?: Key extends string
|
|
439
|
-
?
|
|
445
|
+
? unknown extends TOpt['context']
|
|
446
|
+
? TOpt['context']
|
|
447
|
+
: ContextOfKey<Key, Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>>
|
|
440
448
|
: never;
|
|
441
449
|
},
|
|
442
450
|
DefaultValue extends string = never,
|