@forklaunch/validator 0.1.10 → 0.1.12
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/index.d.ts +8 -2
- package/dist/index.js +0 -15
- package/dist/index.js.map +1 -1
- package/dist/interfaces/schemaValidator.interfaces.d.ts +0 -6
- package/package.json +18 -2
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,13 @@ import { TOuterArray, TCatchall, TObject, TObjectShape, TResolve, TSchemaTransla
|
|
|
10
10
|
import { ZodOuterArray, ZodCatchall, ZodObject, ZodObjectShape, ZodResolve, ZodSchemaTranslate } from "./zod/types/zod.schema.types";
|
|
11
11
|
import { ZodSchemaValidator } from "./zod";
|
|
12
12
|
import { TypeboxSchemaValidator } from "./typebox";
|
|
13
|
-
import {
|
|
13
|
+
import { SchemaValidator } from "./interfaces/schemaValidator.interfaces";
|
|
14
|
+
/**
|
|
15
|
+
* Interface representing any schema validator.
|
|
16
|
+
* Extends the SchemaValidator interface with any schema types.
|
|
17
|
+
*/
|
|
18
|
+
export interface AnySchemaValidator extends SchemaValidator<any, any, any> {
|
|
19
|
+
}
|
|
14
20
|
/**
|
|
15
21
|
* Type alias for a schema object shape.
|
|
16
22
|
* Resolves to ZodObjectShape for Zod schemas and TObjectShape for TypeBox schemas.
|
|
@@ -80,4 +86,4 @@ export type ValidSchemaObject<SV extends AnySchemaValidator> = SchemaObject<Sche
|
|
|
80
86
|
* @template SV - SchemaValidator type.
|
|
81
87
|
*/
|
|
82
88
|
export type Schema<T extends ValidSchemaObject<SV> | IdiomaticSchema<SchemaCatchall<SV>>, SV extends AnySchemaValidator> = SchemaPrettify<SchemaResolve<T, SV>, SV>;
|
|
83
|
-
export
|
|
89
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -5,20 +5,5 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module SchemaTypes
|
|
7
7
|
*/
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
-
};
|
|
22
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
__exportStar(require("./interfaces/schemaValidator.interfaces"), exports);
|
|
24
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { SchemaObject } from "openapi3-ts/oas31";
|
|
2
2
|
import { LiteralSchema } from "../types/schema.types";
|
|
3
|
-
/**
|
|
4
|
-
* Interface representing any schema validator.
|
|
5
|
-
* Extends the SchemaValidator interface with any schema types.
|
|
6
|
-
*/
|
|
7
|
-
export interface AnySchemaValidator extends SchemaValidator<any, any, any> {
|
|
8
|
-
}
|
|
9
3
|
/**
|
|
10
4
|
* Interface representing a schema validator.
|
|
11
5
|
*
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/validator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Schema validator for ForkLaunch components.",
|
|
5
|
-
"files": ["dist
|
|
5
|
+
"files": ["dist"],
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"directories": {
|
|
8
8
|
"test": "tests"
|
|
@@ -35,6 +35,14 @@
|
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"default": "./dist/index.js"
|
|
37
37
|
},
|
|
38
|
+
"./types": {
|
|
39
|
+
"types": "./dist/types/schema.types.d.ts",
|
|
40
|
+
"default": "./dist/types/schema.types.js"
|
|
41
|
+
},
|
|
42
|
+
"./interfaces": {
|
|
43
|
+
"types": "./dist/interfaces/schemaValidator.interfaces.d.ts",
|
|
44
|
+
"default": "./dist/interfaces/schemaValidator.interfaces.js"
|
|
45
|
+
},
|
|
38
46
|
"./typebox": {
|
|
39
47
|
"types": "./dist/typebox/index.d.ts",
|
|
40
48
|
"default": "./dist/typebox/index.js"
|
|
@@ -42,6 +50,14 @@
|
|
|
42
50
|
"./zod": {
|
|
43
51
|
"types": "./dist/zod/index.d.ts",
|
|
44
52
|
"default": "./dist/zod/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./typebox/types": {
|
|
55
|
+
"types": "./dist/typebox/types/typebox.schema.types.d.ts",
|
|
56
|
+
"default": "./dist/typebox/types/typebox.schema.types.js"
|
|
57
|
+
},
|
|
58
|
+
"./zod/types": {
|
|
59
|
+
"types": "./dist/zod/types/zod.schema.types.d.ts",
|
|
60
|
+
"default": "./dist/zod/types/zod.schema.types.js"
|
|
45
61
|
}
|
|
46
62
|
}
|
|
47
63
|
}
|