diff --git a/bun.lockb b/bun.lockb index 5b3db08..195f56a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 6b24c93..6ba746a 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "clean:node": "rm -rf node_modules" }, "dependencies": { - "@thilawyn/traitify-ts": "^0.1.8", + "@thilawyn/traitify-ts": "^0.1.9", "decimal.js": "^10.4.3", "effect": "^2.4.0", "lodash-es": "^4.17.21", diff --git a/src/ZodSchemaClass.ts b/src/ZodSchemaClass.ts index 3745878..4f32378 100644 --- a/src/ZodSchemaClass.ts +++ b/src/ZodSchemaClass.ts @@ -1,4 +1,4 @@ -import { expression } from "@thilawyn/traitify-ts" +import { Trait, TraitExpressionBuilder, expression } from "@thilawyn/traitify-ts" import { AbstractClass, Simplify } from "type-fest" import { z } from "zod" import { ExtendableZodSchemaObject } from "./traits/ExtendableZodSchemaObject" @@ -6,6 +6,14 @@ import { InstantiableZodSchemaObject } from "./traits/InstantiableZodSchemaObjec import { Extend, StaticMembers } from "./util" +export class ZodSchemaClassBuilder< + Superclass extends AbstractClass, + const Traits extends Trait[], +> +extends TraitExpressionBuilder { +} + + export function ZodSchemaClassOf< Superclass extends AbstractClass,