ConditionFunction
ConditionFunction = (
context,args?) =>boolean|Promise<boolean>
Defined in: src/types/ICondition.ts:23
A custom condition function registered via ac.defineCondition(name, fn).
Receives the merged check context and the rule’s args; may be sync
or async (evaluated only on the grantedAsync/checkAsync path).
Parameters
Section titled “Parameters”context
Section titled “context”Record<string, unknown>
unknown
Returns
Section titled “Returns”boolean | Promise<boolean>