UNPKG

json-logic-engine

Version:

Construct complex rules with JSON & process them.

19 lines (18 loc) 604 B
/** * Used to precoerce a data value to a number, for the purposes of coalescing. * @param {any} item */ export function precoerceNumber(item: any): any; /** * Used to assert in compiled templates that a value is an array of at least a certain size. * @param {*} arr * @param {number} size */ export function assertSize(arr: any, size: number): any[]; /** * Used to assert in compiled templates that when a numeric comparison is made, both values are numbers. * @param {*} item * @param {*} prev * @returns {number} */ export function compareCheck(item: any, prev: any, strict: any): number;