Traitify API update
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Julien Valverdé
2024-02-20 00:55:21 +01:00
parent 880d77019d
commit 3bf22f1f49
3 changed files with 15 additions and 21 deletions

View File

@@ -1,14 +1,12 @@
import { abstract, trait } from "@thilawyn/traitify-ts"
import { trait } from "@thilawyn/traitify-ts"
import { AbstractClass } from "type-fest"
import { z } from "zod"
import { ZodSchemaAbstractClass } from "../shapes/ZodSchemaClass"
import { Extend, StaticMembers } from "../util"
export const ExtendableZodSchemaObject = trait(
abstract(),
Super => class ExtendableZodSchemaObject extends Super {
export const ExtendableZodSchemaObject = trait
.implement(Super => class ExtendableZodSchemaObject extends Super {
static extend<
Super extends ZodSchemaAbstractClass<SuperInstance, SuperSchemaT, SuperSchemaUnknownKeys, SuperSchemaCatchall, SuperValues, SuperDefaultValues>,
SuperInstance extends SuperValues,
@@ -56,5 +54,5 @@ export const ExtendableZodSchemaObject = trait(
static readonly defaultValues = defaultValues
} as any
}
},
)
})
.build()