From 5259a60b0247ccb6633466efe30107ef0e1dc224 Mon Sep 17 00:00:00 2001 From: Natan Vivo Date: Wed, 29 May 2013 22:33:17 -0300 Subject: [PATCH] Colleciton model must be any, as the class itself must be passed, not an instance. Template parameter is optional. --- backbone/backbone.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index d9eca0f212..92ff102dc6 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -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;