UNPKG

apply-hooks

Version:

A high-quality & reliable JavaScript Hooks library.

16 lines (15 loc) 375 B
interface ICopy { (el: HTMLElement | string): Promise<string | boolean>; } interface ICut { (el: HTMLElement | string): Promise<string | boolean>; } interface IMoveToClipboard { (value: string): Promise<string | boolean>; } declare const useClipboard: () => { copy: ICopy; cut: ICut; moveToClipboard: IMoveToClipboard; }; export default useClipboard;