ZodSchemaClassBuilder work
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-22 04:35:41 +01:00
parent 586eddc898
commit 26453038a2
2 changed files with 37 additions and 18 deletions

View File

@@ -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 */