Update meteor.d.ts

collection.remove returns the number of removed items, just like update/upsert etc., see http://docs.meteor.com/#/full/remove
This commit is contained in:
Maximilian Friedmann
2015-11-25 22:54:59 +01:00
parent 36c6ce86fb
commit 2830f7f722

2
meteor/meteor.d.ts vendored
View File

@@ -616,7 +616,7 @@ declare module Mongo {
insert(doc: T, callback?: Function): string;
rawCollection(): any;
rawDatabase(): any;
remove(selector: Mongo.Selector | Mongo.ObjectID | string, callback?: Function): void;
remove(selector: Mongo.Selector | Mongo.ObjectID | string, callback?: Function): number;
update(selector: Mongo.Selector | Mongo.ObjectID | string, modifier: Mongo.Modifier, options?: {
multi?: boolean;
upsert?: boolean;