import "../prototype"; /** * Provides some validation operations * Use {@see Assertions} for assertions. * @export * @class Validations */ export default class Validations { /** * Checks the given parameter type is Primitive or not * @param o * @return {boolean} */ static isPrimitive(o: any): boolean; /** * Checks the given parameter type is JsonType or not * @param o * @return {boolean} */ static isJsonType(o: any): boolean; /** * Checks the given parameter type is NativeType or not. * @param o * @return {boolean} */ static isNativeType(o: any): boolean; /** * Checks the given parameter type is Object or not * @param o * @return {boolean} */ static isObject(o: any): boolean; /** * Checks the given parameter type is Number or not. * @param o * @return {boolean} */ static isNumber(o: any): boolean; /** * * Checks the given parameter type is Boolean or not * @param o * @return {boolean} */ static isBoolean(o: any): boolean; /** * Checks the given parameter type is Array or not. * @param o * @return {boolean} */ static isArray(o: any): boolean; /** * Checks the given parameter type is String or not. * @param o * @return {boolean} */ static isString(o: any): boolean; /** * Checks the given parameter type is Date or not * @param o * @return {boolean} */ static isDate(o: any): boolean; /** * Checks the given parameter type is RegExp or not. * @param o * @return {boolean} */ static isRegExp(o: any): boolean; /** * Checks the given parameter type is Null or not. * @param o * @return {boolean} */ static isNull(o: any): boolean; /** * Checks the given parameter type is Function or not. * @param o * @return {boolean} */ static isFunction(o: any): boolean; /** * Checks the given parameter type is Undefined or not. * @param o * @return {boolean} */ static isUndefined(o: any): boolean; /** * Checks the given parameter has value or not * @param o * @return {boolean} */ static has(o: any): boolean; /** * Checks the given parameter has value or not. * @param o * @return {boolean} */ static hasNot(o: any): boolean; /** * Checks the given src parameter equals the given destination parameter or not * @param src * @param dest * @return {boolean} */ static equals(src: any, dest: any): boolean; }