From 0ad9432d6178e61c5de0d15ad36a7c82c149d0c2 Mon Sep 17 00:00:00 2001 From: damianog Date: Thu, 29 Aug 2013 21:16:11 +0200 Subject: [PATCH] Node.js util.inspect must return a string As explained here: http://nodejs.org/api/util.html#util_util_inspect_object_options util.inspect return a string --- node/node.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/node.d.ts b/node/node.d.ts index a77ee58b9..52560d36b 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -1011,7 +1011,7 @@ 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, color?: boolean): void; + export function inspect(object: any, showHidden?: boolean, depth?: number, color?: boolean): string; export function isArray(object: any): boolean; export function isRegExp(object: any): boolean; export function isDate(object: any): boolean;