mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Merge pull request #4931 from Wordenskjold/patch-2
Make it possible to initialize a Backbone.Collection from raw objects
This commit is contained in:
4
backbone/backbone.d.ts
vendored
4
backbone/backbone.d.ts
vendored
@@ -173,8 +173,8 @@ declare module Backbone {
|
||||
models: TModel[];
|
||||
length: number;
|
||||
|
||||
constructor(models?: TModel[], options?: any);
|
||||
initialize(models?: TModel[], options?: any): void;
|
||||
constructor(models?: TModel[] | Object[], options?: any);
|
||||
initialize(models?: TModel[] | Object[], options?: any): void;
|
||||
|
||||
fetch(options?: CollectionFetchOptions): JQueryXHR;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user