mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Colleciton model must be any, as the class itself must be passed, not an instance.
Template parameter is optional.
This commit is contained in:
parent
92706d5e3c
commit
5259a60b02
4
backbone/backbone.d.ts
vendored
4
backbone/backbone.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user