Collection.add signature fix

http://backbonejs.org/#Collection-add - "Returns the added (or preexisting, if duplicate) models."
This commit is contained in:
pafflique
2015-07-07 16:57:09 +03:00
parent 304a251979
commit 3387b8b715
+2 -2
View File
@@ -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.