mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added a code property to MongoError (#16242)
Added missing code property to MongoError. http://thecodebarbarian.com/mongoose-error-handling
This commit is contained in:
parent
be0d3f97cb
commit
950c9cdca9
1
types/mongodb/index.d.ts
vendored
1
types/mongodb/index.d.ts
vendored
@ -35,6 +35,7 @@ export interface MongoCallback<T> {
|
||||
export class MongoError extends Error {
|
||||
constructor(message: string);
|
||||
static create(options: Object): MongoError;
|
||||
code?: number;
|
||||
}
|
||||
|
||||
//http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html#.connect
|
||||
|
||||
Loading…
Reference in New Issue
Block a user