Fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Julien Valverdé
2024-03-17 16:39:26 +01:00
parent 63e31a159b
commit af00628434

View File

@@ -25,16 +25,16 @@ export const ZodSchemaObject = <
static readonly schemaWithDefaults = schemaWithDefaults static readonly schemaWithDefaults = schemaWithDefaults
static pipeSchemaToInstance< static pipeSchemaToInstance<
Instance extends Values, Instance extends Values,
TransformT extends z.ZodRawShape, SchemaT extends z.ZodRawShape,
TransformUnknownKeys extends z.UnknownKeysParam, SchemaUnknownKeys extends z.UnknownKeysParam,
TransformCatchall extends z.ZodTypeAny, SchemaCatchall extends z.ZodTypeAny,
TransformOutput extends Values, SchemaOutput extends Values,
TransformInput, SchemaInput,
>( >(
this: Class<Instance, [values: Values]>, this: Class<Instance, [values: Values]>,
schema: z.ZodObject<TransformT, TransformUnknownKeys, TransformCatchall, TransformOutput, TransformInput>, schema: z.ZodObject<SchemaT, SchemaUnknownKeys, SchemaCatchall, SchemaOutput, SchemaInput>,
) { ) {
return schema.transform(values => new this(values)) return schema.transform(values => new this(values))
} }