mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-21 08:33:26 +08:00
Merge pull request #21810 from 19majkel94/bson-buffer
[BSON]: Add buffer field to Binary
This commit is contained in:
3
types/bson/index.d.ts
vendored
3
types/bson/index.d.ts
vendored
@@ -39,6 +39,9 @@ export class Binary {
|
||||
|
||||
constructor(buffer: Buffer, subType?: number);
|
||||
|
||||
/** The underlying Buffer which stores the binary data. */
|
||||
readonly buffer: Buffer;
|
||||
|
||||
/** The length of the binary. */
|
||||
length(): number;
|
||||
/** Updates this binary with byte_value */
|
||||
|
||||
Reference in New Issue
Block a user