mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Allow mixed content in Collection.add
Valid for TypeScript 1.4
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): TModel;
|
||||
add(models: TModel[], options?: AddOptions): 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