Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97fbc4c

Browse files
committed
types(ts): add window declaration
1 parent 039062a commit 97fbc4c

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
@@ -2,3 +2,9 @@ export default class ImageCropElement extends HTMLElement {
22
src: string || null
33
loaded: boolean
44
}
5+
6+
declare global {
7+
interface Window {
8+
ImageCropElement: typeof ImageCropElement
9+
}
10+
}

0 commit comments

Comments
 (0)