diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 0852c682fe..b4d832710e 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -33,6 +33,7 @@ // Chathu Vishwajith // Tom Yam // Thomas Pischulski +// Sam Kim // Dongjun Lee // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 3.0 @@ -3255,7 +3256,7 @@ declare module "mongoose" { * @param options.ordered if true, will fail fast on the first error encountered. * If false, will insert all the documents it can and report errors later. * @param options.rawResult if false, the returned promise resolves to the documents that passed mongoose document validation. - * If `false`, will return the [raw result from the MongoDB driver](http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#~insertWriteOpCallback) + * If `true`, will return the [raw result from the MongoDB driver](http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#~insertWriteOpCallback) * with a `mongoose` property that contains `validationErrors` if this is an unordered `insertMany`. */ insertMany(docs: any[], callback?: (error: any, docs: T[]) => void): Promise;