jsonata-visual-editor
Version:
Visual editor for JSONata expressions. Themeable to your needs, default theme is Boostrap 4
77 lines (76 loc) • 2.15 kB
TypeScript
/**
* Binary operators that apply (mostly) to numbers.
*
* These do work with string, boolean, etc. but they don't make sense for most end-users
*/
export declare const numberOperators: {
readonly ">": "greater than";
readonly "<": "less than";
readonly "<=": "less than or equal";
readonly ">=": "greater than or equal";
};
/**
* Base operators that apply to all types (string, number, boolean, null)
*/
export declare const baseOperators: {
readonly "=": "equals";
readonly "!=": "not equals";
};
/**
* Only applies to array functions
*/
export declare const arrayOperators: {
readonly in: "array contains";
};
/**
* Set of all comparion operators. These operators should all return boolean values.
*/
export declare const comparionsOperators: {
readonly in: "array contains";
readonly ">": "greater than";
readonly "<": "less than";
readonly "<=": "less than or equal";
readonly ">=": "greater than or equal";
readonly "=": "equals";
readonly "!=": "not equals";
};
/**
* Combiner operators. These operators should return boolean values
*/
export declare const combinerOperators: {
readonly and: "and";
readonly or: "or";
};
/**
* Math operators. These operators should return number values
*/
export declare const mathOperators: {
readonly "-": "minus";
readonly "+": "plus";
readonly "*": "times";
readonly "/": "divided by";
readonly "%": "modulo";
};
export declare const stringOperators: {
readonly "&": "concatenate";
};
/**
* Set of *all* binary operators
*/
export declare const operators: {
readonly "&": "concatenate";
readonly and: "and";
readonly or: "or";
readonly "-": "minus";
readonly "+": "plus";
readonly "*": "times";
readonly "/": "divided by";
readonly "%": "modulo";
readonly in: "array contains";
readonly ">": "greater than";
readonly "<": "less than";
readonly "<=": "less than or equal";
readonly ">=": "greater than or equal";
readonly "=": "equals";
readonly "!=": "not equals";
};