import { nonNullishAsync } from "https://deno.land/x/valibot@v0.2.0-to-json-schema/src/schemas/nonNullish/nonNullishAsync.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.