Skip to content

Commit

Permalink
Merge pull request #25 from github/types-ts-add-window-declaration
Browse files Browse the repository at this point in the history
Add TS window declaration for ImageCropElement
  • Loading branch information
keithamus authored Sep 12, 2019
2 parents 039062a + 97fbc4c commit 5ede117
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 5ede117

Please sign in to comment.