initial commit
This commit is contained in:
71
node_modules/clipboardy/index.d.ts
generated
vendored
Normal file
71
node_modules/clipboardy/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
declare const clipboard: {
|
||||
/**
|
||||
Write (copy) to the clipboard asynchronously.
|
||||
|
||||
@param text - The text to write to the clipboard.
|
||||
|
||||
@example
|
||||
```
|
||||
import clipboard from 'clipboardy';
|
||||
|
||||
await clipboard.write('🦄');
|
||||
|
||||
await clipboard.read();
|
||||
//=> '🦄'
|
||||
```
|
||||
*/
|
||||
write(text: string): Promise<void>;
|
||||
|
||||
/**
|
||||
Read (paste) from the clipboard asynchronously.
|
||||
|
||||
@example
|
||||
```
|
||||
import clipboard from 'clipboardy';
|
||||
|
||||
await clipboard.write('🦄');
|
||||
|
||||
await clipboard.read();
|
||||
//=> '🦄'
|
||||
```
|
||||
*/
|
||||
read(): Promise<string>;
|
||||
|
||||
/**
|
||||
Write (copy) to the clipboard synchronously.
|
||||
|
||||
__Doesn't work in browsers.__
|
||||
|
||||
@param text - The text to write to the clipboard.
|
||||
|
||||
@example
|
||||
```
|
||||
import clipboard from 'clipboardy';
|
||||
|
||||
clipboard.writeSync('🦄');
|
||||
|
||||
clipboard.readSync();
|
||||
//=> '🦄'
|
||||
```
|
||||
*/
|
||||
writeSync(text: string): void;
|
||||
|
||||
/**
|
||||
Read (paste) from the clipboard synchronously.
|
||||
|
||||
__Doesn't work in browsers.__
|
||||
|
||||
@example
|
||||
```
|
||||
import clipboard from 'clipboardy';
|
||||
|
||||
clipboard.writeSync('🦄');
|
||||
|
||||
clipboard.readSync();
|
||||
//=> '🦄'
|
||||
```
|
||||
*/
|
||||
readSync(): string;
|
||||
};
|
||||
|
||||
export default clipboard;
|
||||
Reference in New Issue
Block a user