BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-08-07 11:18:02 +02:00
parent 8b9dec976c
commit 0a8e4a3517
17 changed files with 12813 additions and 902 deletions

11
dist_ts/smartrule.classes.rule.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
import { SmartRule } from './smartrule.classes.smartrule.js';
export declare type TTreeActionResult = 'continue' | 'apply-continue' | 'apply-stop' | 'stop';
export declare type TActionFunc<T = any> = (objectArg: T) => Promise<any>;
export declare type TCheckFunc<T> = (objectArg: T) => Promise<TTreeActionResult>;
export declare class Rule<T> {
smartRuleRef: SmartRule<T>;
priority: number;
checkFunction: TCheckFunc<T>;
actionFunction: TActionFunc;
constructor(smartRuleRef: SmartRule<T>, priorityArg: number, checkFunctionArg: TCheckFunc<T>, actionFunctionArg: TActionFunc);
}