Skip to content

Commit

Permalink
types(ts): add window declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Sep 12, 2019
1 parent 039062a commit 97fbc4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ export default class ImageCropElement extends HTMLElement {
src: string || null
loaded: boolean
}

declare global {
interface Window {
ImageCropElement: typeof ImageCropElement
}
}

0 comments on commit 97fbc4c

Please sign in to comment.