import { nonNullish } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/schemas/nonNullish/index.ts";
Creates a non nullish schema.
Type Parameters
TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
Parameters
wrapped: TWrapped
The wrapped schema.
Returns
NonNullishSchema<TWrapped, undefined>
A non nullish schema.
Creates a non nullish schema.
Type Parameters
TWrapped extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TMessage extends ErrorMessage<NonNullishIssue> | undefined
Returns
A non nullish schema.