From 84ab2cd275e5e3df93c24090f2fc05e1d826bfdd Mon Sep 17 00:00:00 2001 From: Ziggy Date: Tue, 18 Jul 2017 13:02:26 -0700 Subject: [PATCH 1/2] @types/angular-strap The type definition is missing the `prefixClass` option. https://github.com/mgcrea/angular-strap/blob/master/dist/modules/modal.js#L16 --- types/angular-strap/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/angular-strap/index.d.ts b/types/angular-strap/index.d.ts index 2b31f00148..cf0dc25481 100644 --- a/types/angular-strap/index.d.ts +++ b/types/angular-strap/index.d.ts @@ -45,6 +45,7 @@ declare namespace mgcrea.ngStrap { template?: string; templateUrl?: string; contentTemplate?: string; + prefixClass?: string; prefixEvent?: string; id?: string; scope?: ng.IScope; From 46ec03c7498b130ab35a6c548f9ef92f3425e707 Mon Sep 17 00:00:00 2001 From: Ziggy Date: Tue, 18 Jul 2017 13:39:09 -0700 Subject: [PATCH 2/2] Append missing callbacks --- types/angular-strap/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/angular-strap/index.d.ts b/types/angular-strap/index.d.ts index cf0dc25481..f7749a049b 100644 --- a/types/angular-strap/index.d.ts +++ b/types/angular-strap/index.d.ts @@ -49,6 +49,10 @@ declare namespace mgcrea.ngStrap { prefixEvent?: string; id?: string; scope?: ng.IScope; + onBeforeHide?: (modal: IModal) => void; + onHide?: (modal: IModal) => void; + onBeforeShow?: (modal: IModal) => void; + onShow?: (modal: IModal) => void; } interface IModalScope extends ng.IScope {