mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Collection.add signature fix
http://backbonejs.org/#Collection-add - "Returns the added (or preexisting, if duplicate) models."
This commit is contained in:
Vendored
+2
-2
@@ -181,8 +181,8 @@ declare module Backbone {
|
||||
comparator(element: TModel): number;
|
||||
comparator(compare: TModel, to?: TModel): number;
|
||||
|
||||
add(model: TModel, options?: AddOptions): Collection<TModel>;
|
||||
add(models: TModel[], options?: AddOptions): Collection<TModel>;
|
||||
add(model: TModel, options?: AddOptions): TModel;
|
||||
add(models: TModel[], options?: AddOptions): TModel[];
|
||||
at(index: number): TModel;
|
||||
/**
|
||||
* Get a model from a collection, specified by an id, a cid, or by passing in a model.
|
||||
|
||||
Reference in New Issue
Block a user