This commit is contained in:
@@ -2,7 +2,7 @@ import { Effect, pipe } from "effect"
|
|||||||
import { AbstractClass, Class as ConcreteClass, Opaque } from "type-fest"
|
import { AbstractClass, Class as ConcreteClass, Opaque } from "type-fest"
|
||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
import { DefinedDefaultValuesTag, NewZodSchemaInstanceArgs, NewZodSchemaInstanceInput, TZodSchemaClass } from "."
|
import { DefinedDefaultValuesTag, NewZodSchemaInstanceArgs, NewZodSchemaInstanceInput, TZodSchemaClass } from "."
|
||||||
import { Class, GetClassType, MergeInheritanceTree, MergeInheritanceTreeWithoutOverriding, StaticMembers, parseZodTypeEffect } from "./util"
|
import { Class, ClassesInstances, ClassesStaticMembers, GetClassType, MergeInheritanceTree, MergeInheritanceTreeWithoutOverriding, parseZodTypeEffect } from "./util"
|
||||||
|
|
||||||
|
|
||||||
export function ZodSchemaClassOf<
|
export function ZodSchemaClassOf<
|
||||||
@@ -109,18 +109,22 @@ export function ZodSchemaClassOf<
|
|||||||
Class<
|
Class<
|
||||||
GetClassType<Super>,
|
GetClassType<Super>,
|
||||||
|
|
||||||
MergeInheritanceTreeWithoutOverriding<[
|
MergeInheritanceTreeWithoutOverriding<
|
||||||
InstanceType<Super>,
|
ClassesInstances<[
|
||||||
InstanceType<TZodSchemaClassImpl>,
|
Super,
|
||||||
]> &
|
TZodSchemaClassImpl,
|
||||||
|
]>
|
||||||
|
> &
|
||||||
|
|
||||||
ConstructorParameters<TZodSchemaClassImpl>
|
ConstructorParameters<TZodSchemaClassImpl>
|
||||||
> &
|
> &
|
||||||
|
|
||||||
MergeInheritanceTree<[
|
MergeInheritanceTree<
|
||||||
StaticMembers<Super>,
|
ClassesStaticMembers<[
|
||||||
StaticMembers<TZodSchemaClassImpl>,
|
Super,
|
||||||
|
TZodSchemaClassImpl,
|
||||||
]>
|
]>
|
||||||
|
>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user