Skip to content

Commit 845cdcf

Browse files
committed
Merge pull request soywiz-archive#3 from Extrawurst/master
some small additions while using the def file
2 parents 9805099 + d702fe2 commit 845cdcf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mongodb.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ declare module "mongodb" {
172172
save(doc: any, callback : (err, result) => void);
173173
save(doc: any, options: { safe: any; }, callback : (err, result) => void);
174174

175-
update(selector: any, document: any, callback: (err: any, result: any) => void): void;
175+
update(selector: any, document: any, callback?: (err: any, result: any) => void): void;
176176
update(selector: any, document: any, options: { safe; upsert; multi; serializeFunctions; }, callback: (err: any, result: any) => void): void;
177177

178178
distinct(key: string, query: Object, callback: (err, result) => void);
@@ -221,14 +221,15 @@ declare module "mongodb" {
221221
geoNear(x, y, options, callback);
222222
geoHaystackSearch(x, y, options, callback);
223223
indexes(callback);
224-
aggregate(pipeline, options, callback);
224+
aggregate(pipeline:any[], options, callback);
225225
stats(options, callback);
226226

227227
hint;
228228
}
229229

230230
export interface Cursor {
231231
toArray(callback: (err: any, results: any[]) => void);
232+
nextObject(callback: (err:any,doc:any) => void);
232233
}
233234

234235
export interface CollectionFindOptions {

0 commit comments

Comments
 (0)