Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit c499949

Browse files
authored
Merge pull request #45 from github/types-ts-add-window-declaration
Add TS window declaration for DetailsDialogElement
2 parents 490ea50 + 25fc07e commit c499949

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
export default class DetailsDialogElement extends HTMLElement {
22
toggle(open: boolean): void;
33
}
4+
5+
declare global {
6+
interface Window {
7+
DetailsDialogElement: typeof DetailsDialogElement
8+
}
9+
}

0 commit comments

Comments
 (0)