Const
vx.toString
Converts an arbitrary valibot schema back into string form. Used internally for testing/debugging.
import * as v from "valibot"import { vx } from "@traversable/valibot"console.log( vx.toString( v.union([ v.object({ tag: v.literal("Left") }), v.object({ tag: v.literal("Right") }) ]) ))// =>// v.union([// v.object({ tag: v.literal("Left") }),// v.object({ tag: v.literal("Right") })// ]) Copy
import * as v from "valibot"import { vx } from "@traversable/valibot"console.log( vx.toString( v.union([ v.object({ tag: v.literal("Left") }), v.object({ tag: v.literal("Right") }) ]) ))// =>// v.union([// v.object({ tag: v.literal("Left") }),// v.object({ tag: v.literal("Right") })// ])
vx.toString
Converts an arbitrary valibot schema back into string form. Used internally for testing/debugging.