0.1.3 #4

Merged
Thilawyn merged 74 commits from next into master 2024-03-24 22:24:25 +01:00
Showing only changes of commit af00628434 - Show all commits

View File

@@ -27,14 +27,14 @@ export const ZodSchemaObject = <
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))
} }