Skip to content

Commit

Permalink
Merge pull request #21 from github/types-ts-add-window-declaration
Browse files Browse the repository at this point in the history
Add TS window declaration for ClipboardCopyElement
  • Loading branch information
keithamus authored Sep 12, 2019
2 parents 072076d + ff9dc5a commit 4305bb5
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
@@ -1,3 +1,9 @@
export default class ClipboardCopyElement extends HTMLElement {
value: string
}

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

0 comments on commit 4305bb5

Please sign in to comment.