ts-db-helper
Version:
Simple ORM based on TypeScript
46 lines (45 loc) • 1.16 kB
TypeScript
/**
* @public
* @class ClauseOperators
*
* @description
* list of managed operators. This class should be converted to an enum in a furture version
*
* @author Olivier Margarit
*
* @since 0.2
*/
export declare class ClauseOperators {
/**
* @public
* @constant {string} OR the or operator "OR"
*/
static OR: string;
/**
* @public
* @default
* @constant {string} AND the and operator "AND"
*/
static AND: string;
/**
* @public
* @static
* @method isKeyOf check if string is a valid key of ClauseOperator, this check
* is not case sensitive
*
* @param {string} val the value to check
*
* @return {boolean} is true if key will return a valid value with {@link ClauseOperator.valueOf}
*/
static isKeyOf(val: string): boolean;
/**
* @public
* @static
* @method valueOf get value of ClauseOperator by using a valid key val.
*
* @param {string} val the value key
*
* @return {boolean} the operator linked to the key
*/
static valueOf(val: String): string;
}