mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
Collection.remove: Argument type is missing.
It is different arguments in the add function and remove function. (add - Backbone.Collection.add, remove - Backbone.Collection.remove) Those that can be used in argument, a Model instance, id string or a JS object http://backbonejs.org/#Collection-remove
This commit is contained in:
Vendored
+2
-2
@@ -206,8 +206,8 @@ declare module Backbone {
|
||||
pluck(attribute: string): any[];
|
||||
push(model: TModel, options?: AddOptions): TModel;
|
||||
pop(options?: Silenceable): TModel;
|
||||
remove(model: TModel, options?: Silenceable): TModel;
|
||||
remove(models: TModel[], options?: Silenceable): TModel[];
|
||||
remove(model: {}|TModel, options?: Silenceable): TModel;
|
||||
remove(models: ({}|TModel)[], options?: Silenceable): TModel[];
|
||||
reset(models?: TModel[], options?: Silenceable): TModel[];
|
||||
set(models?: TModel[], options?: Silenceable): TModel[];
|
||||
shift(options?: Silenceable): TModel;
|
||||
|
||||
Reference in New Issue
Block a user