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

This commit is contained in:
Julien Valverdé
2024-03-16 02:04:58 +01:00
parent a985d14bea
commit 2bf207883f

View File

@@ -1,5 +1,5 @@
import { ImplStatic, trait } from "@thilawyn/traitify-ts" import { ImplStatic, trait } from "@thilawyn/traitify-ts"
import { Class, HasRequiredKeys } from "type-fest" import { AbstractClass, Class, HasRequiredKeys } from "type-fest"
import { z } from "zod" import { z } from "zod"
import { StaticMembers, parseZodSchemaEffect, stripZodObjectDefaults } from "../util" import { StaticMembers, parseZodSchemaEffect, stripZodObjectDefaults } from "../util"
@@ -83,6 +83,15 @@ export const ZodSchemaObject = <
params, params,
) )
} }
static extend<
Self extends AbstractClass<ZodSchemaObject> & ImplStatic<typeof ZodSchemaObject>
>(
this: Self
) {
}
} }
return ZodSchemaObject as Class<ZodSchemaObject & Values> & StaticMembers<typeof ZodSchemaObject> return ZodSchemaObject as Class<ZodSchemaObject & Values> & StaticMembers<typeof ZodSchemaObject>