From 778f8f4b7eeca9479b87f160cc880daabefceb2c Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 12 Sep 2019 10:08:27 +0100 Subject: [PATCH 1/3] types(ts): add window declaration --- index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.d.ts b/index.d.ts index f2ab26e..c7e4d9b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,3 +1,9 @@ export default class DetailsDialogElement extends HTMLElement { toggle(open: boolean): void; } + +declare global { + interface Window { + DetailsDialogElement: DetailsDialogElement + } +} From 25fc07e3ef2ce5487d16f64ee040669c598736b0 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 12 Sep 2019 10:40:52 +0100 Subject: [PATCH 2/3] types(ts): fix window declaration type --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index c7e4d9b..fa64e70 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,6 +4,6 @@ export default class DetailsDialogElement extends HTMLElement { declare global { interface Window { - DetailsDialogElement: DetailsDialogElement + DetailsDialogElement: typeof DetailsDialogElement } } From 85d284714718e251232fdc3ea2120278fa27b173 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 12 Sep 2019 11:47:22 +0100 Subject: [PATCH 3/3] 3.0.10 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index e6dbb08..c1bb608 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@github/details-dialog-element", - "version": "3.0.9", + "version": "3.0.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 1d7f673..00441a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@github/details-dialog-element", - "version": "3.0.9", + "version": "3.0.10", "description": "A modal dialog opened with a
button.", "repository": "github/details-dialog-element", "main": "dist/index.umd.js",