This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/clipboardy/index.d.ts

34 lines
622 B
TypeScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
/**
Write (copy) to the clipboard asynchronously.
@param text - The text to write to the clipboard.
*/
export function write(text: string): Promise<void>;
/**
Write (copy) to the clipboard synchronously.
@param text - The text to write to the clipboard.
@example
```
import * as clipboardy from 'clipboardy';
clipboardy.writeSync('🦄');
clipboardy.readSync();
//=> '🦄'
```
*/
export function writeSync(text: string): void;
/**
Read (paste) from the clipboard asynchronously.
*/
export function read(): Promise<string>;
/**
Read (paste) from the clipboard synchronously.
*/
export function readSync(): string;