Colleciton model must be any, as the class itself must be passed, not an instance.

Template parameter is optional.
This commit is contained in:
Natan Vivo 2013-05-29 22:33:17 -03:00
parent 92706d5e3c
commit 5259a60b02

View File

@ -135,7 +135,7 @@ declare module Backbone {
static extend(properties: any, classProperties?: any): any; // do not use, prefer TypeScript's extend functionality
model: Model;
model: any;
models: any;
collection: Model;
length: number;
@ -265,7 +265,7 @@ declare module Backbone {
$(selector: string): JQuery;
model: Model;
collection: Collection;
template: (data: any) => string;
template: (data?: any) => string;
make(tagName: string, attrs?, opts?): View;
setElement(element: HTMLElement, delegate?: bool);
id: string;