This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AbstractClass } from "type-fest"
|
||||
import { z } from "zod"
|
||||
import { ZodSchemaAbstractClass } from "../shapes/ZodSchemaClass"
|
||||
import { Extend, StaticMembers } from "../util"
|
||||
import { Extend, Override, StaticMembers } from "../util"
|
||||
|
||||
|
||||
export class ZodSchemaClassExtender<Superclass extends AbstractClass<object>> {
|
||||
@@ -46,11 +46,11 @@ export class ZodSchemaClassExtender<Superclass extends AbstractClass<object>> {
|
||||
}
|
||||
|
||||
return new this.constructor(
|
||||
this.superclass as unknown as AbstractClass<
|
||||
Schemas as unknown as AbstractClass<
|
||||
Extend<[SuperInstance, Values]>,
|
||||
[values: Values]
|
||||
> &
|
||||
Extend<[
|
||||
Override<[
|
||||
StaticMembers<Super>,
|
||||
StaticMembers<typeof Schemas>,
|
||||
]>
|
||||
|
||||
Reference in New Issue
Block a user