Comparing version 22.0.2 to 22.0.3
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"22.0.2"} | ||
{"type":"module","version":"22.0.3"} |
@@ -827,3 +827,3 @@ // Helpers | ||
*/ | ||
interface CustomTypeParameters { | ||
interface CustomTypeParameters { | ||
returnNull?: boolean; | ||
@@ -864,10 +864,6 @@ returnEmptyString?: boolean; | ||
export type DefaultTFuncReturn = | ||
| string | ||
| object | ||
| TFunctionDetailedResult | ||
| Array<string | object> | ||
| undefined | ||
| null; | ||
export type DefaultTFuncReturn = string | undefined | null; | ||
export type DefaultTFuncReturnWithObject = DefaultTFuncReturn | object | Array<string | object>; | ||
export type TFuncReturn< | ||
@@ -897,3 +893,3 @@ N, | ||
TKeys extends TFuncKey<N, TKPrefix> | TemplateStringsArray extends infer A ? A : never, | ||
TDefaultResult extends DefaultTFuncReturn = object, | ||
TDefaultResult extends DefaultTFuncReturnWithObject = object, | ||
TInterpolationMap extends object = StringMap, | ||
@@ -914,3 +910,3 @@ >( | ||
TKeys extends TFuncKey<N, TKPrefix> | TemplateStringsArray extends infer A ? A : never, | ||
TDefaultResult extends DefaultTFuncReturn = object, | ||
TDefaultResult extends DefaultTFuncReturnWithObject = object, | ||
TInterpolationMap extends object = StringMap, | ||
@@ -1191,8 +1187,16 @@ >( | ||
*/ | ||
getFixedT( | ||
getFixedT<N extends Namespace = DefaultNamespace, TKPrefix extends KeyPrefix<N> = undefined>( | ||
lng: string | readonly string[], | ||
ns?: string | readonly string[], | ||
keyPrefix?: string, | ||
): TFunction; | ||
getFixedT(lng: null, ns: string | readonly string[] | null, keyPrefix?: string): TFunction; | ||
ns?: N, | ||
keyPrefix?: TKPrefix, | ||
): TFunction<N, TKPrefix>; | ||
getFixedT< | ||
N extends Namespace | null, | ||
TKPrefix extends KeyPrefix<ActualNS>, | ||
ActualNS extends Namespace = N extends null ? DefaultNamespace : N, | ||
>( | ||
lng: null, | ||
ns: N, | ||
keyPrefix?: TKPrefix, | ||
): TFunction<ActualNS, TKPrefix>; | ||
@@ -1199,0 +1203,0 @@ /** |
{ | ||
"name": "i18next", | ||
"version": "22.0.2", | ||
"version": "22.0.3", | ||
"description": "i18next internationalization framework", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/i18next.js", |
691887
14222