@ccms/nodejs
Version:
MiaoScript nodejs package
70 lines • 2.73 kB
TypeScript
declare var getOwnPropertyDescriptors: <T>(obj: T) => {};
declare var formatRegExp: RegExp;
declare var debugs: {};
declare var debugEnvRegex: RegExp;
/**
* Echos the value of a value. Trys to print the value out
* in the best way possible given the different types.
*
* @param {Object} obj The object to print out.
* @param {Object} opts Optional options object that alters the output.
*/
declare function inspect(obj: any, opts?: any): any;
declare namespace inspect {
var colors: {
bold: number[];
italic: number[];
underline: number[];
inverse: number[];
white: number[];
grey: number[];
black: number[];
blue: number[];
cyan: number[];
green: number[];
magenta: number[];
red: number[];
yellow: number[];
};
var styles: {
special: string;
number: string;
boolean: string;
undefined: string;
null: string;
string: string;
date: string;
regexp: string;
};
}
declare function stylizeWithColor(str: any, styleType: any): any;
declare function stylizeNoColor(str: any, styleType: any): any;
declare function arrayToHash(array: any): {};
declare function formatValue(ctx: any, value: any, recurseTimes: any): any;
declare function formatPrimitive(ctx: any, value: any): any;
declare function formatError(value: any): string;
declare function formatArray(ctx: any, value: any, recurseTimes: any, visibleKeys: any, keys: any): any[];
declare function formatProperty(ctx: any, value: any, recurseTimes: any, visibleKeys: any, key: any, array: any): any;
declare function reduceToSingleString(output: any, base: any, braces: any): string;
declare function isArray(ar: any): boolean;
declare function isBoolean(arg: any): boolean;
declare function isNull(arg: any): boolean;
declare function isNullOrUndefined(arg: any): boolean;
declare function isNumber(arg: any): boolean;
declare function isString(arg: any): boolean;
declare function isSymbol(arg: any): boolean;
declare function isUndefined(arg: any): boolean;
declare function isRegExp(re: any): boolean;
declare function isObject(arg: any): boolean;
declare function isDate(d: any): boolean;
declare function isError(e: any): boolean;
declare function isFunction(arg: any): boolean;
declare function isPrimitive(arg: any): boolean;
declare function objectToString(o: any): string;
declare function pad(n: any): any;
declare var months: string[];
declare function timestamp(): string;
declare var kCustomPromisifiedSymbol: symbol;
declare function callbackifyOnRejected(reason: any, cb: any): any;
declare function callbackify(original: any): () => void;
//# sourceMappingURL=index.d.ts.map