Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Type Alias: RuleValidator()<T>

RuleValidator<T>: (value, store, args?) => RuleValidatorResult | Promise<RuleValidatorResult>

The function that checks the value and returns the result of the rule validation, see RuleValidatorResult.

Type Parameters

T = any

the value type.

Parameters

value: T

the value.

store: IStore

the form viewer settings

args?: Record<string, unknown>

the rule arguments.

Returns

RuleValidatorResult | Promise<RuleValidatorResult>