Add properties for util.inspect and util.promisify

This commit is contained in:
Brian Lee
2017-06-27 17:24:31 -07:00
parent a70a977fe4
commit 42af84cc3a

18
types/node/index.d.ts vendored
View File

@@ -3938,8 +3938,17 @@ declare module "util" {
export function puts(...param: any[]): void;
export function print(...param: any[]): void;
export function log(string: string): void;
export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
export function inspect(object: any, options: InspectOptions): string;
export var inspect: {
(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
(object: any, options: InspectOptions): string;
colors: {
[color: string]: [number, number]
}
styles: {
[style: string]: string
}
custom: symbol
}
export function isArray(object: any): object is any[];
export function isRegExp(object: any): object is RegExp;
export function isDate(object: any): object is Date;
@@ -3958,7 +3967,10 @@ declare module "util" {
export function isSymbol(object: any): object is symbol;
export function isUndefined(object: any): object is undefined;
export function deprecate(fn: Function, message: string): Function;
export function promisify(fn: Function): Function;
export var promisify: {
(fn: Function): Function;
custom: symbol
}
}
declare module "assert" {