@aeriajs/validation 0.0.115 → 0.0.117
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.
- package/dist/validate.d.ts +2 -2
- package/package.json +5 -5
package/dist/validate.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const validate: <TWhat, const TJsonSchema extends Omit<Descriptio
|
|
|
24
24
|
} | {
|
|
25
25
|
readonly _tag: "Result";
|
|
26
26
|
readonly error: undefined;
|
|
27
|
-
readonly result: InferSchema<TJsonSchema>;
|
|
27
|
+
readonly result: InferSchema<TJsonSchema, {}>;
|
|
28
28
|
};
|
|
29
29
|
export declare const validator: <const TJsonSchema extends Omit<Description, "$id"> | Property>(schema: TJsonSchema, options?: ValidateOptions) => readonly [InferSchema<TJsonSchema>, <TWhat>(what: TWhat) => {
|
|
30
30
|
readonly _tag: "Error";
|
|
@@ -33,5 +33,5 @@ export declare const validator: <const TJsonSchema extends Omit<Description, "$i
|
|
|
33
33
|
} | {
|
|
34
34
|
readonly _tag: "Result";
|
|
35
35
|
readonly error: undefined;
|
|
36
|
-
readonly result: InferSchema<TJsonSchema>;
|
|
36
|
+
readonly result: InferSchema<TJsonSchema, {}>;
|
|
37
37
|
}];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/validation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.117",
|
|
4
4
|
"description": "## Installation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"@aeriajs/types": "link:../types"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@aeriajs/common": "^0.0.
|
|
30
|
-
"@aeriajs/types": "^0.0.
|
|
29
|
+
"@aeriajs/common": "^0.0.114",
|
|
30
|
+
"@aeriajs/types": "^0.0.97",
|
|
31
31
|
"mongodb": "^6.5.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"test": "vitest run",
|
|
35
|
-
"lint": "eslint
|
|
36
|
-
"lint:fix": "eslint
|
|
35
|
+
"lint": "eslint .",
|
|
36
|
+
"lint:fix": "eslint . --fix",
|
|
37
37
|
"build": "pnpm build:cjs && pnpm build:esm",
|
|
38
38
|
"build:cjs": "tsc",
|
|
39
39
|
"build:esm": "esbuild './src/**/*.ts' --outdir=dist --out-extension:.js=.mjs && pnpm build:esm-transform",
|