json-logic-engine
Version:
Construct complex rules with JSON & process them.
9 lines (8 loc) • 309 B
TypeScript
/**
* Processes the logic for the engine once so that it doesn't need to be traversed again.
* @param {*} logic
* @param {*} engine
* @param {any[]} above
* @returns A function that optimizes the logic for the engine in advance.
*/
export function optimize(logic: any, engine: any, above?: any[]): any;