Comparing version 23.7.10 to 23.7.11
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"23.7.10"} | ||
{"type":"module","version":"23.7.11"} |
{ | ||
"name": "i18next", | ||
"version": "23.7.10", | ||
"version": "23.7.11", | ||
"description": "i18next internationalization framework", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/i18next.js", |
@@ -101,7 +101,15 @@ import type { $OmitArrayKeys, $PreservedValue, $Dictionary, $SpecialObject } from './helpers.js'; | ||
// this seems not to work for ts < 4.7.2 | ||
// type ParseKeysByFallbackNs<Keys extends $Dictionary> = _FallbackNamespace extends false | ||
// ? never | ||
// : _FallbackNamespace extends (infer UnionFallbackNs extends string)[] | ||
// ? Keys[UnionFallbackNs] | ||
// : Keys[_FallbackNamespace & string]; | ||
// so let's try this: | ||
type First<T> = T extends [infer U, ...any[]] ? U : any; | ||
type ParseKeysByFallbackNs<Keys extends $Dictionary> = _FallbackNamespace extends false | ||
? never | ||
: _FallbackNamespace extends (infer UnionFallbackNs extends string)[] | ||
? Keys[UnionFallbackNs] | ||
: Keys[_FallbackNamespace & string]; | ||
: _FallbackNamespace extends string | ||
? Keys[_FallbackNamespace & string] | ||
: Keys[First<_FallbackNamespace>]; | ||
@@ -108,0 +116,0 @@ type FilterKeysByContext<Keys, TOpt extends TOptions> = TOpt['context'] extends string |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
615721
13871