diff --git a/src/index.ts b/src/index.ts index 401f441..c712fd4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,6 +6,9 @@ declare global { interface Window { ClipboardCopyElement: typeof ClipboardCopyElement } + interface HTMLElementTagNameMap { + 'clipboard-copy': ClipboardCopyElement + } } if (!window.customElements.get('clipboard-copy')) {