@forklaunch/validator 0.2.0 → 0.2.1
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
CHANGED
|
@@ -14,7 +14,7 @@ import { ZodCatchall, ZodObject, ZodObjectShape, ZodOuterArray, ZodResolve, ZodS
|
|
|
14
14
|
* Interface representing any schema validator.
|
|
15
15
|
* Extends the SchemaValidator interface with any schema types.
|
|
16
16
|
*/
|
|
17
|
-
type AnySchemaValidator = TypeboxSchemaValidator | ZodSchemaValidator;
|
|
17
|
+
export type AnySchemaValidator = TypeboxSchemaValidator | ZodSchemaValidator;
|
|
18
18
|
/**
|
|
19
19
|
* Type alias for a schema object shape.
|
|
20
20
|
* Resolves to ZodObjectShape for Zod schemas and TObjectShape for TypeBox schemas.
|
|
@@ -7,7 +7,7 @@ import { LiteralSchema } from "../types/schema.types";
|
|
|
7
7
|
* @template IdiomaticSchema - The type for idiomatic schemas.
|
|
8
8
|
* @template Catchall - The catch-all type for all schemas.
|
|
9
9
|
*/
|
|
10
|
-
export interface SchemaValidator<UnionContainer, IdiomaticSchema, Catchall> {
|
|
10
|
+
export interface SchemaValidator<UnionContainer = unknown, IdiomaticSchema = unknown, Catchall = unknown> {
|
|
11
11
|
/**
|
|
12
12
|
* Validator for string type.
|
|
13
13
|
*/
|