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 2bf207883f - Show all commits

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>