Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#46067 feat(angular-bootstrap-lightbox): up…
Browse files Browse the repository at this point in the history
…date types by @elpddev

* feat(angular-bootstrap-lightbox): update types

* feat(angular-bootstrap-lightbox): fix version

* feat(angular-bootstrap-lightbox): fix general type
  • Loading branch information
elpddev authored and astorije committed Jul 30, 2020
1 parent 072763f commit 078cac4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ imageList.push({

var lightBox:angular.bootstrap.lightbox.ILightbox = <any> {};
lightBox.openModal(imageList, 0);
lightBox.openModal(imageList, 0, {});

var provider:angular.bootstrap.lightbox.ILightBoxProvider = <any> {};
provider.templateUrl = 'templateUrl';
Expand Down
8 changes: 6 additions & 2 deletions types/angular-bootstrap-lightbox/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for angular-bootstrap-lightbox
// Type definitions for angular-bootstrap-lightbox 0.12
// Project: https://github.com/compact/angular-bootstrap-lightbox
// Definitions by: Roland Zwaga <https://github.com/rolandzwaga>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Expand Down Expand Up @@ -40,7 +40,11 @@ declare namespace angular.bootstrap.lightbox {
}

export interface ILightbox {
openModal(images:ILightboxImageInfo[], index:number):void;
openModal(
images:ILightboxImageInfo[],
index:number,
modalParams?: { [key: string]: any }, // angular.ui.bootstrap.IModalSettings
):void;
}

export interface ILightBoxProvider {
Expand Down

0 comments on commit 078cac4

Please sign in to comment.