Skip to content

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).

Record<string, unknown>

unknown

boolean | Promise<boolean>