- copyToClipboard(text): Promise<boolean>
Returns Promise<boolean>
- A promise that resolves to a boolean indicating whether the copy operation was successful.
Methods
listen
- listen(fn): (() => void)
Parameters
- fn: ((text: string) => void)
Returns (() => void)
override
- override(ref): void
Parameters
- ref: ((text: string) => void | Promise<void>)
- (text): void | Promise<void>
Returns void | Promise<void>
Returns void
Copies the given text to the clipboard.