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:
16
src/tests.ts
16
src/tests.ts
@@ -1,9 +1,21 @@
|
||||
import { Implements } from "@thilawyn/traitify-ts"
|
||||
import { Implements, expression } from "@thilawyn/traitify-ts"
|
||||
import { z } from "zod"
|
||||
import { ZodSchemaClass } from "./ZodSchemaClass"
|
||||
import { ZodSchemaClass, ZodSchemaClassBuilder } from "./ZodSchemaClass"
|
||||
import { ObservableZodSchemaObject } from "./traits/ObservableZodSchemaObject"
|
||||
|
||||
|
||||
const newTestExp = new ZodSchemaClassBuilder(expression)
|
||||
.schema(
|
||||
z.object({
|
||||
id: z.bigint()
|
||||
}),
|
||||
|
||||
{ id: -1n },
|
||||
)
|
||||
.toBuilder()
|
||||
.expressionSuperclass
|
||||
|
||||
|
||||
const TestExp = ZodSchemaClass({
|
||||
schema: z.object({
|
||||
/** Object ID */
|
||||
|
||||
Reference in New Issue
Block a user