function withDefaultDeprecatedDeprecatedUse optional instead. import { withDefault } from "https://deno.land/x/valibot@v0.28.1/mod.ts"; DeprecatedUse optional instead. withDefault<TSchema extends BaseSchema | BaseSchemaAsync>(schema: TSchema, value: Input<TSchema> | (() => Input<TSchema>)): TSchemaPasses a default value to a schema in case of an undefined input. Type ParametersTSchema extends BaseSchema | BaseSchemaAsyncParametersschema: TSchemaThe affected schema. value: Input<TSchema> | (() => Input<TSchema>)The default value. ReturnsTSchemaThe passed schema.