0.1.2 #3
@@ -1,4 +1,4 @@
|
||||
import { Trait, TraitClass, TraitExpressionBuilder, expression } from "@thilawyn/traitify-ts"
|
||||
import { Trait, TraitExpressionBuilder, expression } from "@thilawyn/traitify-ts"
|
||||
import { AbstractClass } from "type-fest"
|
||||
import { JsonifiableObject } from "type-fest/source/jsonifiable"
|
||||
import { z } from "zod"
|
||||
@@ -53,8 +53,8 @@ export class ZodSchemaClassBuilder<
|
||||
}
|
||||
|
||||
jsonifiable<
|
||||
Super extends TraitClass<ZodSchemaObjectTrait<SchemaT, SchemaUnknownKeys, SchemaCatchall, SchemaWithDefaultValuesT, SchemaWithDefaultValuesUnknownKeys, SchemaWithDefaultValuesCatchall, Values, PartialValues>>
|
||||
& { jsonifySchema?: never, dejsonifySchema?: never },
|
||||
Super extends AbstractClass<Values, [values: Values]>,
|
||||
T extends readonly [ZodSchemaObjectTrait<SchemaT, SchemaUnknownKeys, SchemaCatchall, SchemaWithDefaultValuesT, SchemaWithDefaultValuesUnknownKeys, SchemaWithDefaultValuesCatchall, Values, PartialValues>],
|
||||
|
||||
SchemaT extends z.ZodRawShape,
|
||||
SchemaUnknownKeys extends z.UnknownKeysParam,
|
||||
@@ -78,8 +78,8 @@ export class ZodSchemaClassBuilder<
|
||||
JsonifiedValues extends JsonifiableObject,
|
||||
>(
|
||||
this: ZodSchemaClassBuilder<
|
||||
Super | TraitClass<ZodSchemaObjectTrait<SchemaT, SchemaUnknownKeys, SchemaCatchall, SchemaWithDefaultValuesT, SchemaWithDefaultValuesUnknownKeys, SchemaWithDefaultValuesCatchall, Values, PartialValues>>,
|
||||
Traits
|
||||
Super,
|
||||
T | readonly [ZodSchemaObjectTrait<SchemaT, SchemaUnknownKeys, SchemaCatchall, SchemaWithDefaultValuesT, SchemaWithDefaultValuesUnknownKeys, SchemaWithDefaultValuesCatchall, Values, PartialValues>]
|
||||
>,
|
||||
|
||||
props: {
|
||||
|
||||
Reference in New Issue
Block a user