You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should provide a TypeScript declaration, so copy-text-to-clipboard can seamlessly be used in TypeScript. This would also provide auto-completion for JavaScript users in some editors.
Just add a file called index.d.ts with the following content:
/** * Copy `text` to the clipboard. * Must be called in response to a user gesture event, like `click` or `keyup`. * * @return whether copying succeeded */exportdefaultfunctioncopy(text: string): boolean
The text was updated successfully, but these errors were encountered:
You should provide a TypeScript declaration, so
copy-text-to-clipboard
can seamlessly be used in TypeScript. This would also provide auto-completion for JavaScript users in some editors.Just add a file called
index.d.ts
with the following content:The text was updated successfully, but these errors were encountered: