smartrule/dist_ts/smartrule.classes.smartrule.d.ts

11 lines
406 B
TypeScript
Raw Normal View History

2022-08-07 09:18:02 +00:00
import { Rule, TCheckFunc, TActionFunc } from './smartrule.classes.rule.js';
export declare class SmartRule<T> {
rules: Array<Rule<T>>;
/**
* makes a decision based on the given obect and the given rules
* @param objectArg
*/
makeDecision(objectArg: T): Promise<void>;
createRule(priorityArg: number, checkFunctionArg: TCheckFunc<T>, actionFunctionArg: TActionFunc): void;
}