UNPKG

447 BTypeScriptView Raw
1/** Represents the clipboard used for copying and pasting in Atom. */
2export interface Clipboard {
3 /** Write the given text to the clipboard. */
4 write(text: string, metadata?: object): void;
5
6 /** Read the text from the clipboard. */
7 read(): string;
8
9 /**
10 * Read the text from the clipboard and return both the text and the associated
11 * metadata.
12 */
13 readWithMetadata(): { text: string; metadata: object };
14}