mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[mongodb] Add 'errmsg' prop to MongoError
This commit is contained in:
parent
14d0a6329a
commit
2cc1c0c18d
2
types/mongodb/index.d.ts
vendored
2
types/mongodb/index.d.ts
vendored
@ -16,6 +16,7 @@
|
||||
// Jimmy Shimizu <https://github.com/jishi>
|
||||
// Dominik Heigl <https://github.com/various89>
|
||||
// Angela-1 <https://github.com/angela-1>
|
||||
// Mikael Lirbank <https://github.com/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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user