0.1.2 #3
@@ -1,5 +1,4 @@
|
||||
import { expression } from "@thilawyn/traitify-ts"
|
||||
import { NoInfer } from "effect/Types"
|
||||
import { AbstractClass } from "type-fest"
|
||||
import { z } from "zod"
|
||||
import { InstantiableZodSchemaObject } from "./traits/InstantiableZodSchemaObject"
|
||||
@@ -20,7 +19,7 @@ export function ZodSchemaClassOf<
|
||||
|
||||
{ schema, defaultValues }: {
|
||||
schema: z.ZodObject<SchemaT, SchemaUnknownKeys, SchemaCatchall, Values, Values>
|
||||
defaultValues: NoInfer<DefaultValues>
|
||||
defaultValues: DefaultValues
|
||||
},
|
||||
) {
|
||||
const exp = expression
|
||||
@@ -64,7 +63,7 @@ export function ZodSchemaClass<
|
||||
>(
|
||||
props: {
|
||||
schema: z.ZodObject<SchemaT, SchemaUnknownKeys, SchemaCatchall, Values, Values>
|
||||
defaultValues: NoInfer<DefaultValues>
|
||||
defaultValues: DefaultValues
|
||||
},
|
||||
) {
|
||||
return ZodSchemaClassOf(DefaultRoot, props)
|
||||
|
||||
Reference in New Issue
Block a user