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

This commit is contained in:
Julien Valverdé
2024-03-17 12:29:07 +01:00
parent 11f384d933
commit 73303a1748
3 changed files with 90 additions and 94 deletions

View File

@@ -12,8 +12,8 @@ export const ExtendableZodSchemaObject = <
schemaWithDefaults: z.ZodObject<T, "strip", Catchall, Values, PartialValues>,
) => expression
.expresses(ZodSchemaObject(schemaWithDefaults))
.buildAnyway()
.build()
.subtrait()
.implement(Super => class ExtendableZodSchemaObject extends Super {
.implement(Super => class ExtendableZodSchemaObjectImpl extends Super {
})
.build()