Comparing version 22.0.0 to 22.0.1
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"22.0.0"} | ||
{"type":"module","version":"22.0.1"} |
@@ -827,6 +827,11 @@ // Helpers | ||
*/ | ||
interface CustomTypeParameters { | ||
returnNull?: boolean; | ||
returnEmptyString?: boolean; | ||
} | ||
export type NormalizeByTypeOptions< | ||
TranslationValue, | ||
R = TypeOptionsFallback<TranslationValue, TypeOptions['returnEmptyString'], ''>, | ||
> = TypeOptionsFallback<R, TypeOptions['returnNull'], null>; | ||
Options extends CustomTypeParameters = TypeOptions, | ||
R = TypeOptionsFallback<TranslationValue, Options['returnEmptyString'], ''>, | ||
> = TypeOptionsFallback<R, Options['returnNull'], null>; | ||
@@ -839,3 +844,3 @@ type StringIfPlural<T> = TypeOptions['jsonFormat'] extends 'v4' | ||
type NormalizeReturn< | ||
export type NormalizeReturn< | ||
T, | ||
@@ -842,0 +847,0 @@ V, |
{ | ||
"name": "i18next", | ||
"version": "22.0.0", | ||
"version": "22.0.1", | ||
"description": "i18next internationalization framework", | ||
@@ -105,3 +105,3 @@ "main": "./dist/cjs/i18next.js", | ||
"scripts": { | ||
"pretest": "npm run test:typescript && npm run test:custom-typescript && npm run test:typescript:noninterop", | ||
"pretest": "npm run test:typescript && npm run test:typescript:customtypes && npm run test:typescript:noninterop", | ||
"test": "npm run test:new && npm run test:compat", | ||
@@ -111,3 +111,3 @@ "test:new": "karma start karma.conf.js --singleRun", | ||
"test:typescript": "tslint --project tsconfig.json", | ||
"test:custom-typescript": "tslint --project test/typescript/custom-types/tsconfig.json", | ||
"test:typescript:customtypes": "tslint --project test/typescript/custom-types/tsconfig.json", | ||
"test:typescript:noninterop": "tslint --project tsconfig.nonEsModuleInterop.json", | ||
@@ -114,0 +114,0 @@ "tdd": "karma start karma.conf.js", |
690819
14203