import { optional } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/src/schemas/optional/index.ts";
Creates a optional schema.
Type Parameters
TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
Parameters
wrapped: TWrapped
The wrapped schema.
Returns
OptionalSchema<TWrapped, never>
A optional schema.
Creates a optional schema.
Type Parameters
TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
Returns
A optional schema.