From 5f8252b86c96274dbebf51384ed5957d6b6b9ede Mon Sep 17 00:00:00 2001 From: Sven Date: Mon, 10 Feb 2014 21:01:37 +0100 Subject: [PATCH 1/3] Added getRegion to Marionette.Application --- marionette/marionette.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/marionette/marionette.d.ts b/marionette/marionette.d.ts index 52a1bb6ef..4eb4b0fa4 100644 --- a/marionette/marionette.d.ts +++ b/marionette/marionette.d.ts @@ -288,6 +288,7 @@ declare module Marionette { start(options?); addRegions(regions); removeRegion(region: Region); + getRegion(regionName: string): Region; module(moduleNames, moduleDefinition); } From 80f6d4780cfc6f0db8753d8080ad5c0a2dad78e5 Mon Sep 17 00:00:00 2001 From: Sven Date: Mon, 10 Feb 2014 21:02:18 +0100 Subject: [PATCH 2/3] Added AMD support --- marionette/marionette.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/marionette/marionette.d.ts b/marionette/marionette.d.ts index 4eb4b0fa4..b1804485f 100644 --- a/marionette/marionette.d.ts +++ b/marionette/marionette.d.ts @@ -307,3 +307,9 @@ declare module Marionette { addDefinition(moduleDefinition, customArgs); } } + +declare module 'backbone.marionette' { + import Backbone = require('backbone'); + + export = Marionette; +} From 5d6afdcd1eac2ff54731f7e1c156567d4bba6573 Mon Sep 17 00:00:00 2001 From: Sven Date: Mon, 10 Feb 2014 21:04:12 +0100 Subject: [PATCH 3/3] Author Tag --- marionette/marionette.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/marionette/marionette.d.ts b/marionette/marionette.d.ts index b1804485f..dca2915c5 100644 --- a/marionette/marionette.d.ts +++ b/marionette/marionette.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/marionettejs/ // Definitions by: Zeeshan Hamid // Definitions by: Natan Vivo +// Definitions by: Sven Tschui // Definitions: https://github.com/borisyankov/DefinitelyTyped ///