From 8f069176444a60d428557450ee42d84166a7ef44 Mon Sep 17 00:00:00 2001 From: Eirik Hoem Date: Sat, 28 Dec 2013 16:06:08 +0100 Subject: [PATCH 1/4] Model.isValid is now accepts options, see source --- backbone/backbone.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index cdcd145c2..aad4cffde 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -120,7 +120,7 @@ declare module Backbone { has(attribute: string): boolean; hasChanged(attribute?: string): boolean; isNew(): boolean; - isValid(): boolean; + isValid(options?:any): boolean; previous(attribute: string): any; previousAttributes(): any[]; save(attributes?: any, options?: ModelSaveOptions): any; From 1249a51a3827c2e76fc48e9d7d6d7eac431b64cc Mon Sep 17 00:00:00 2001 From: Eirik Hoem Date: Sat, 28 Dec 2013 16:06:22 +0100 Subject: [PATCH 2/4] Model.url is now a method, see docs --- backbone/backbone.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index aad4cffde..32205e1f9 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -80,7 +80,7 @@ declare module Backbone { } class ModelBase extends Events { - url: any; + url(): any; parse(response: any, options?: any): any; toJSON(options?: any): any; sync(...arg: any[]): JQueryXHR; From 5d1fb5ab2e5ab6d9383025d77878e2d0107c056f Mon Sep 17 00:00:00 2001 From: Eirik Hoem Date: Sun, 29 Dec 2013 14:03:01 +0100 Subject: [PATCH 3/4] Added url property as well --- backbone/backbone.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index 32205e1f9..cbee545e9 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -80,6 +80,7 @@ declare module Backbone { } class ModelBase extends Events { + url: string; url(): any; parse(response: any, options?: any): any; toJSON(options?: any): any; From a6f00d174cf60684e325b94fbe35f045aad5b2b8 Mon Sep 17 00:00:00 2001 From: Eirik Hoem Date: Sun, 29 Dec 2013 14:29:18 +0100 Subject: [PATCH 4/4] Reverted URL change --- backbone/backbone.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index cbee545e9..aad4cffde 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -80,8 +80,7 @@ declare module Backbone { } class ModelBase extends Events { - url: string; - url(): any; + url: any; parse(response: any, options?: any): any; toJSON(options?: any): any; sync(...arg: any[]): JQueryXHR;