interface OptionalSchema
implements BaseSchema<InferInput<TWrapped> | undefined, InferOptionalOutput<TWrapped, TDefault>, InferIssue<TWrapped>>
import { type OptionalSchema } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/schemas/optional/index.ts";
Optional schema type.
Type Parameters
TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>