ZodSchemaClassBuilder work
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { Implements, expression } from "@thilawyn/traitify-ts"
|
||||
import { Implements, TraitExpression } from "@thilawyn/traitify-ts"
|
||||
import { z } from "zod"
|
||||
import { ZodSchemaClass, ZodSchemaClassBuilder } from "./ZodSchemaClass"
|
||||
import { ObservableZodSchemaObject } from "./traits/ObservableZodSchemaObject"
|
||||
|
||||
|
||||
const newTestExp = new ZodSchemaClassBuilder(expression)
|
||||
const newTestExp = new ZodSchemaClassBuilder(TraitExpression.NullSuperclass, [])
|
||||
.schema(
|
||||
z.object({
|
||||
id: z.bigint()
|
||||
@@ -12,7 +12,6 @@ const newTestExp = new ZodSchemaClassBuilder(expression)
|
||||
|
||||
{ id: -1n },
|
||||
)
|
||||
.toBuilder()
|
||||
.expressionSuperclass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user