This commit is contained in:
@@ -6,9 +6,6 @@ import { z } from "zod"
|
||||
export type JsonifiableZodSchemaClass<
|
||||
Instance extends Values,
|
||||
|
||||
Values extends object,
|
||||
JsonifiedValues extends JsonifiableObject,
|
||||
|
||||
JsonifySchemaT extends z.ZodRawShape,
|
||||
JsonifySchemaUnknownKeys extends z.UnknownKeysParam,
|
||||
JsonifySchemaCatchall extends z.ZodTypeAny,
|
||||
@@ -16,28 +13,28 @@ export type JsonifiableZodSchemaClass<
|
||||
DejsonifySchemaT extends z.ZodRawShape,
|
||||
DejsonifySchemaUnknownKeys extends z.UnknownKeysParam,
|
||||
DejsonifySchemaCatchall extends z.ZodTypeAny,
|
||||
|
||||
Values extends object,
|
||||
JsonifiedValues extends JsonifiableObject,
|
||||
> = (
|
||||
Class<Instance, [values: Values]> &
|
||||
JsonifiableZodSchemaClassStatic<
|
||||
Values,
|
||||
JsonifiedValues,
|
||||
|
||||
JsonifySchemaT,
|
||||
JsonifySchemaUnknownKeys,
|
||||
JsonifySchemaCatchall,
|
||||
|
||||
DejsonifySchemaT,
|
||||
DejsonifySchemaUnknownKeys,
|
||||
DejsonifySchemaCatchall
|
||||
DejsonifySchemaCatchall,
|
||||
|
||||
Values,
|
||||
JsonifiedValues
|
||||
>
|
||||
)
|
||||
|
||||
export type JsonifiableZodSchemaAbstractClass<
|
||||
Instance extends Values,
|
||||
|
||||
Values extends object,
|
||||
JsonifiedValues extends JsonifiableObject,
|
||||
|
||||
JsonifySchemaT extends z.ZodRawShape,
|
||||
JsonifySchemaUnknownKeys extends z.UnknownKeysParam,
|
||||
JsonifySchemaCatchall extends z.ZodTypeAny,
|
||||
@@ -45,26 +42,26 @@ export type JsonifiableZodSchemaAbstractClass<
|
||||
DejsonifySchemaT extends z.ZodRawShape,
|
||||
DejsonifySchemaUnknownKeys extends z.UnknownKeysParam,
|
||||
DejsonifySchemaCatchall extends z.ZodTypeAny,
|
||||
|
||||
Values extends object,
|
||||
JsonifiedValues extends JsonifiableObject,
|
||||
> = (
|
||||
AbstractClass<Instance, [values: Values]> &
|
||||
JsonifiableZodSchemaClassStatic<
|
||||
Values,
|
||||
JsonifiedValues,
|
||||
|
||||
JsonifySchemaT,
|
||||
JsonifySchemaUnknownKeys,
|
||||
JsonifySchemaCatchall,
|
||||
|
||||
DejsonifySchemaT,
|
||||
DejsonifySchemaUnknownKeys,
|
||||
DejsonifySchemaCatchall
|
||||
DejsonifySchemaCatchall,
|
||||
|
||||
Values,
|
||||
JsonifiedValues
|
||||
>
|
||||
)
|
||||
|
||||
export type JsonifiableZodSchemaClassStatic<
|
||||
Values extends object,
|
||||
JsonifiedValues extends JsonifiableObject,
|
||||
|
||||
JsonifySchemaT extends z.ZodRawShape,
|
||||
JsonifySchemaUnknownKeys extends z.UnknownKeysParam,
|
||||
JsonifySchemaCatchall extends z.ZodTypeAny,
|
||||
@@ -72,6 +69,9 @@ export type JsonifiableZodSchemaClassStatic<
|
||||
DejsonifySchemaT extends z.ZodRawShape,
|
||||
DejsonifySchemaUnknownKeys extends z.UnknownKeysParam,
|
||||
DejsonifySchemaCatchall extends z.ZodTypeAny,
|
||||
|
||||
Values extends object,
|
||||
JsonifiedValues extends JsonifiableObject,
|
||||
> = {
|
||||
readonly jsonifySchema: z.ZodObject<JsonifySchemaT, JsonifySchemaUnknownKeys, JsonifySchemaCatchall, JsonifiedValues, Values>
|
||||
readonly dejsonifySchema: z.ZodObject<DejsonifySchemaT, DejsonifySchemaUnknownKeys, DejsonifySchemaCatchall, Values, JsonifiedValues>
|
||||
|
||||
Reference in New Issue
Block a user