ZodSchemaClassBuilder.schema fix
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -27,6 +27,8 @@ extends TraitExpressionBuilder<Superclass, Traits> {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
schema<
|
schema<
|
||||||
|
Superclass extends AbstractClass<object> & { schema?: never, defaultValues?: never },
|
||||||
|
|
||||||
SchemaT extends z.ZodRawShape,
|
SchemaT extends z.ZodRawShape,
|
||||||
SchemaUnknownKeys extends z.UnknownKeysParam,
|
SchemaUnknownKeys extends z.UnknownKeysParam,
|
||||||
SchemaCatchall extends z.ZodTypeAny,
|
SchemaCatchall extends z.ZodTypeAny,
|
||||||
@@ -34,7 +36,7 @@ extends TraitExpressionBuilder<Superclass, Traits> {
|
|||||||
Values extends object,
|
Values extends object,
|
||||||
DefaultValues extends Partial<Values>,
|
DefaultValues extends Partial<Values>,
|
||||||
>(
|
>(
|
||||||
// this: This,
|
this: ZodSchemaClassBuilder<Superclass, Traits>,
|
||||||
schema: z.ZodObject<SchemaT, SchemaUnknownKeys, SchemaCatchall, Values, Values>,
|
schema: z.ZodObject<SchemaT, SchemaUnknownKeys, SchemaCatchall, Values, Values>,
|
||||||
defaultValues: DefaultValues,
|
defaultValues: DefaultValues,
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user