Comparing version 23.2.11 to 23.3.0
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"23.2.11"} | ||
{"type":"module","version":"23.3.0"} |
// Internal Helpers | ||
type $MergeBy<T, K> = Omit<T, keyof K> & K; | ||
type $Dictionary<T = any> = { [key: string]: T }; | ||
type $Value<Obj, Key> = Key extends keyof Obj ? Obj[Key] : never; | ||
type $OmitArrayKeys<Arr> = Arr extends readonly any[] ? Omit<Arr, keyof any[]> : Arr; | ||
@@ -869,10 +868,6 @@ type $PreservedValue<Value, Fallback> = [Value] extends [never] ? Fallback : Value; | ||
string}${_PluralSeparator}ordinal${_PluralSeparator}${PluralSuffix}`, | ||
> = KeyWithOrdinalPlural extends keyof Res | ||
? Res[KeyWithOrdinalPlural] | ||
: KeyWithPlural extends keyof Res | ||
? Res[KeyWithPlural] | ||
: $Value<Res, Key>; | ||
> = Res[(KeyWithOrdinalPlural | KeyWithPlural | Key) & keyof Res]; | ||
type ParseTReturn<Key, Res> = Key extends `${infer K1}${_KeySeparator}${infer RestKey}` | ||
? ParseTReturn<RestKey, $Value<Res, K1>> | ||
? ParseTReturn<RestKey, Res[K1 & keyof Res]> | ||
: ParseTReturnPlural<Res, Key>; | ||
@@ -895,3 +890,3 @@ | ||
? Key extends `${infer Nsp}${_NsSeparator}${infer RestKey}` | ||
? ParseTReturn<RestKey, $Value<Resources, Nsp>> | ||
? ParseTReturn<RestKey, Resources[Nsp & keyof Resources]> | ||
: ParseTReturn<Key, Resources[$FirstNamespace<ActualNS>]> | ||
@@ -920,3 +915,2 @@ : DefaultTReturn<TOpt>; | ||
| [key: Key | Key[], options?: TOpt & InterpolationMap<Ret>] | ||
| [key: Key | Key[], defaultValue: string, options?: TOpt & InterpolationMap<Ret>] | ||
| [key: string | string[], options: TOpt & InterpolationMap<Ret> & { defaultValue: string }] | ||
@@ -923,0 +917,0 @@ | [key: string | string[], defaultValue: string, options?: TOpt & InterpolationMap<Ret>] |
{ | ||
"name": "i18next", | ||
"version": "23.2.11", | ||
"version": "23.3.0", | ||
"description": "i18next internationalization framework", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/i18next.js", |
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
575531
12923