Skip to content

Commit 5be7b6a

Browse files
authored
Merge pull request #27 from github/types-ts-add-window-declaration
Add TS window declaration for AutoCheckElement
2 parents 4329ad5 + 895672e commit 5be7b6a

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
@@ -4,3 +4,9 @@ export default class AutoCheckElement extends HTMLElement {
44
csrf: string;
55
required: boolean;
66
}
7+
8+
declare global {
9+
interface Window {
10+
AutoCheckElement: typeof AutoCheckElement
11+
}
12+
}

0 commit comments

Comments
 (0)