UNPKG

@o3r/core

Version:
24 lines 715 B
/** * Minimum action field */ export interface RulesEngineAction<A extends string = string, V = any> { /** Type of the action */ actionType: A; /** Generic value of the action */ value: V; } /** * Action handler executed by the rules engine */ export interface RulesEngineActionHandler<T extends RulesEngineAction = RulesEngineAction> { /** * Execute the actions resulting of the rules engine * @param actions List of actions executed by the rules engine */ executeActions(actions: T[]): void | Promise<void>; /** * Actions supported by the handler */ supportingActions: readonly T['actionType'][]; } //# sourceMappingURL=rules-engine.interfaces.d.ts.map