From 2fb3aa3b2f7a3d8453ab8b371212267e83fce3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=5BDesktop=5D?= Date: Tue, 28 Nov 2017 22:16:50 +0100 Subject: [PATCH] [BSON]: Add buffer field to Binary --- types/bson/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/bson/index.d.ts b/types/bson/index.d.ts index 2b6a636e89..6aeeabe3d9 100644 --- a/types/bson/index.d.ts +++ b/types/bson/index.d.ts @@ -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 */