sat-utils
Version:
46 lines (45 loc) • 2.05 kB
TypeScript
type expectedArg = 'regExp' | 'object' | 'array' | 'set' | 'function' | 'asyncFunction' | 'promise' | 'null' | 'string' | 'undefined' | 'symbol' | 'number' | 'boolean';
declare const typesEnum: {
object: string;
array: string;
set: string;
map: string;
function: string;
asyncFunction: string;
promise: string;
regExp: string;
null: string;
string: string;
undefined: string;
symbol: string;
number: string;
boolean: string;
arguments: string;
buffer: string;
};
declare function isPrimitive(arg: any): boolean;
declare function getType(arg: any): any;
declare function isObject(arg: any): boolean;
declare function isArray(arg: any): boolean;
declare function isNull(arg: any): boolean;
declare function isString(arg: any): boolean;
declare function isUndefined(arg: any): boolean;
declare function isSet(arg: any): boolean;
declare function isMap(arg: any): boolean;
declare function isSymbol(arg: any): boolean;
declare function isNumber(arg: any): boolean;
declare function isBoolean(arg: any): boolean;
declare function isBuffer(arg: any): boolean;
declare function isFunction(arg: any): boolean;
declare function isAsyncFunction(arg: any): boolean;
declare function isPromise(arg: any): boolean;
declare function isRegExp(arg: any): boolean;
declare function isDate(arg: any): arg is Date;
declare function isArguments(arg: any): boolean;
declare function isType(arg: any, typeArg: expectedArg): boolean;
declare function canBeProxed(arg: any): boolean;
declare function isEmptyArray(arg: any): boolean;
declare function isNotEmptyArray(arg: any): boolean;
declare function isEmptyObject(arg: any): boolean;
declare function isNotEmptyObject(arg: any): boolean;
export { isArray, isObject, isNull, isString, isSet, isMap, isUndefined, isNumber, isPromise, isBoolean, isSymbol, isFunction, isRegExp, isAsyncFunction, isDate, isBuffer, isArguments, typesEnum, expectedArg, isType, getType, isPrimitive, canBeProxed, isEmptyArray, isEmptyObject, isNotEmptyArray, isNotEmptyObject, };