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.
@@ -1 +1 @@
1
- {"type":"module","version":"26.0.1"}
1
+ {"type":"module","version":"26.0.3"}
package/index.d.ts CHANGED
@@ -514,6 +514,7 @@ export interface i18n extends CustomInstanceExtensions {
514
514
  resources: any,
515
515
  deep?: boolean,
516
516
  overwrite?: boolean,
517
+ options?: { silent?: boolean; skipCopy?: boolean },
517
518
  ): i18n;
518
519
 
519
520
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next",
3
- "version": "26.0.1",
3
+ "version": "26.0.3",
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
@@ -400,7 +400,9 @@ interface TFunctionStrict<
400
400
  options?: TOpt &
401
401
  InterpolationMap<Ret> & {
402
402
  context?: Key extends string
403
- ? ContextOfKey<Key, Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>>
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
- ? ContextOfKey<Key, Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>>
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
- ? ContextOfKey<Key, Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>>
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
- ? ContextOfKey<Key, Ns, TOpt, EffectiveKPrefix<KPrefix, TOpt>>
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,