mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
[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.
This commit is contained in:
1
node/node.d.ts
vendored
1
node/node.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user