mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 02:30:12 +00:00
Merge pull request #76 from docgit/master
Small adjustments to Backbone
This commit is contained in:
6
Definitions/backbone-0.9.d.ts
vendored
6
Definitions/backbone-0.9.d.ts
vendored
@@ -49,7 +49,7 @@ declare module Backbone {
|
||||
|
||||
export class ModelBase extends Events {
|
||||
fetch(options?: JQueryAjaxSettings);
|
||||
url: string; // or url(): string;
|
||||
url(): string;
|
||||
parse(response);
|
||||
toJSON(): any;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ declare module Backbone {
|
||||
cid: string;
|
||||
id: any;
|
||||
idAttribute: string;
|
||||
urlRoot: string; // or urlRoot()
|
||||
urlRoot() : string;
|
||||
|
||||
constructor (attributes?: any, options?: any);
|
||||
initialize(attributes?: any);
|
||||
@@ -142,8 +142,6 @@ declare module Backbone {
|
||||
flatten(shallow?: bool): Model[];
|
||||
foldl(iterator: (memo: any, element: Model, index: number) => any, initialMemo: any, context?: any): any;
|
||||
forEach(iterator: (element: Model, index: number, list?: any) => void, context?: any);
|
||||
groupBy(iterator: (element: Model, index: number) => any): any[];
|
||||
groupBy(attribute: string): any[];
|
||||
include(value: any): bool;
|
||||
indexOf(element: Model, isSorted?: bool): number;
|
||||
initial(): Model;
|
||||
|
||||
Reference in New Issue
Block a user