From f1c040b378e2c1cf5690fece38c84a7ff62f2c2c Mon Sep 17 00:00:00 2001 From: John Vilk Date: Thu, 12 Dec 2013 14:41:23 -0500 Subject: [PATCH] [Node] Removing incorrect typing for `buffer.INSPECT_MAX_BYTES`. From http://nodejs.org/api/buffer.html#buffer_buffer_inspect_max_bytes: "...this is a property on the buffer module returned by require('buffer'), not on the Buffer global, or a buffer instance." The Node typings do not have a notion of a buffer module, and introducing one would be more work than might be useful. It contains a reference to `Buffer` and `SlowBuffer`, which are currently defined as variables in the typings. I believe I would need to redefine these in the module definition. If anyone has any ideas for how to efficiently restructure this, let me know. --- node/node.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/node/node.d.ts b/node/node.d.ts index 4c8c043d34..26ac44b94c 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -195,7 +195,6 @@ interface NodeBuffer { writeDoubleLE(value: number, offset: number, noAssert?: boolean): void; writeDoubleBE(value: number, offset: number, noAssert?: boolean): void; fill(value: any, offset?: number, end?: number): void; - INSPECT_MAX_BYTES: number; } interface NodeTimer {