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

View File

@@ -1,8 +1,8 @@
import * as plugins from './smartrule.plugins';
import { SmartRule } from './smartrule.classes.smartrule';
import * as plugins from './smartrule.plugins.js';
import { SmartRule } from './smartrule.classes.smartrule.js';
export type TTreeActionResult = 'continue' | 'apply-continue' | 'apply-stop' | 'stop';
export type TActionFunc = (objectArg) => Promise<any>;
export type TActionFunc<T = any> = (objectArg: T) => Promise<any>;
export type TCheckFunc<T> = (objectArg: T) => Promise<TTreeActionResult>;