import { partialCheckAsync } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/actions/partialCheck/index.ts";
Creates a partial check validation action.
Parameters
pathList: TPathList
The selected paths.
requirement: (input: TSelection) => MaybePromise<boolean>
The validation function.
Returns
PartialCheckActionAsync<TInput, TPathList, TSelection, undefined>
A partial check action.
Creates a partial check validation action.
Type Parameters
TInput extends PartialInput
TMessage extends ErrorMessage<PartialCheckIssue<TSelection>> | undefined
Parameters
pathList: TPathList
The selected paths.
requirement: (input: TSelection) => MaybePromise<boolean>
The validation function.
message: TMessage
The error message.
Returns
A partial check action.