box.toString
Converts an arbitrary zod schema back into string form. Can be useful for code generation, testing/debugging, and the occasional sanity check.
Optional
import * as vi from "vitest"import * as T from "@sinclair/typebox"import { box } from "@traversable/typebox"vi.expect.soft(box.toString( )).toMatchInlineSnapshot ()vi.expect.soft(box.toString( )).toMatchInlineSnapshot () Copy
import * as vi from "vitest"import * as T from "@sinclair/typebox"import { box } from "@traversable/typebox"vi.expect.soft(box.toString( )).toMatchInlineSnapshot ()vi.expect.soft(box.toString( )).toMatchInlineSnapshot ()
box.toString
Converts an arbitrary zod schema back into string form. Can be useful for code generation, testing/debugging, and the occasional sanity check.