From 3c34fad19420946701afa98b71a228f3e26ffd26 Mon Sep 17 00:00:00 2001 From: codemannz Date: Fri, 23 Jun 2017 13:31:50 +1200 Subject: [PATCH 1/4] Updated Application to include root region --- types/backbone.marionette/index.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index 8b3d338293..d8ced49217 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1265,17 +1265,17 @@ declare namespace Marionette { */ start(options?: any): void; - /** Deprecated! nstead of using the Application as the root of your view tree, you should use a Layout View.*/ - addRegions(regions: any): any; + /** Root region of the application*/ + region: string; - /** Deprecated! nstead of using the Application as the root of your view tree, you should use a Layout View.*/ - emptyRegions(): void; + /** Get the root region */ + getRegion(): Region; - /** Deprecated! nstead of using the Application as the root of your view tree, you should use a Layout View.*/ - removeRegion(region: Region): void; + /** Show a view in the root region */ + showView(view: any): void; - /** Deprecated! nstead of using the Application as the root of your view tree, you should use a Layout View.*/ - getRegion(regionName: string): Region; + /** Get the view from the root region*/ + getView(): any; module(moduleNames: any, moduleDefinition: any): Module; From a2b40c9f1074150eccdbe6c40a98d7cf13fa0e14 Mon Sep 17 00:00:00 2001 From: codemannz Date: Wed, 28 Jun 2017 10:15:18 +1200 Subject: [PATCH 2/4] Added View variable type --- types/backbone.marionette/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index d8ced49217..52d8c7a492 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1272,7 +1272,7 @@ declare namespace Marionette { getRegion(): Region; /** Show a view in the root region */ - showView(view: any): void; + showView(view: View): void; /** Get the view from the root region*/ getView(): any; From 43c90a8a839851cac01c15ad1c75113647176cc5 Mon Sep 17 00:00:00 2001 From: codemannz Date: Wed, 28 Jun 2017 12:49:05 +1200 Subject: [PATCH 3/4] changed to Backbone.View --- types/backbone.marionette/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index 52d8c7a492..9ffe1460e9 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1272,7 +1272,7 @@ declare namespace Marionette { getRegion(): Region; /** Show a view in the root region */ - showView(view: View): void; + showView(view: Backbone.View): void; /** Get the view from the root region*/ getView(): any; From f3b410c756d251d16c1c67910ec50f27d3c65d01 Mon Sep 17 00:00:00 2001 From: codemannz Date: Wed, 28 Jun 2017 13:27:24 +1200 Subject: [PATCH 4/4] Updated to Backbone.Model --- types/backbone.marionette/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index 9ffe1460e9..ad623aa078 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1272,7 +1272,7 @@ declare namespace Marionette { getRegion(): Region; /** Show a view in the root region */ - showView(view: Backbone.View): void; + showView(view: Backbone.View): void; /** Get the view from the root region*/ getView(): any;