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