This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { abstract, trait } from "@thilawyn/traitify-ts"
|
||||
import { trait } from "@thilawyn/traitify-ts"
|
||||
import { Effect, pipe } from "effect"
|
||||
import { HasRequiredKeys } from "type-fest"
|
||||
import { z } from "zod"
|
||||
@@ -26,10 +26,8 @@ type NewZodSchemaInstanceArgs<Input extends object> = (
|
||||
)
|
||||
|
||||
|
||||
export const InstantiableZodSchemaObject = trait(
|
||||
abstract(),
|
||||
|
||||
Super => class InstantiableZodSchemaObject extends Super {
|
||||
export const InstantiableZodSchemaObject = trait
|
||||
.implement(Super => class InstantiableZodSchemaObject extends Super {
|
||||
static create<
|
||||
Instance extends Values,
|
||||
|
||||
@@ -102,5 +100,5 @@ export const InstantiableZodSchemaObject = trait(
|
||||
protected static initialize() {
|
||||
|
||||
}
|
||||
},
|
||||
)
|
||||
})
|
||||
.build()
|
||||
|
||||
Reference in New Issue
Block a user