From 2cc1c0c18d12976fa030d18ddc240c476bd2ed75 Mon Sep 17 00:00:00 2001 From: Mikael Lirbank Date: Thu, 20 Sep 2018 09:17:31 -0700 Subject: [PATCH] [mongodb] Add 'errmsg' prop to MongoError --- types/mongodb/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index cad52bb88a..bf2cda4903 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -16,6 +16,7 @@ // Jimmy Shimizu // Dominik Heigl // Angela-1 +// Mikael Lirbank // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -208,6 +209,7 @@ export class MongoError extends Error { constructor(message: string); static create(options: Object): MongoError; code?: number; + errmsg?: string; } /** http://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html#.connect */