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