mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
11 lines
221 B
TypeScript
11 lines
221 B
TypeScript
import clipboardy = require('clipboardy');
|
|
|
|
clipboardy.writeSync('🦄');
|
|
clipboardy.write('🦄').then(() => {});
|
|
|
|
let str: string;
|
|
str = clipboardy.readSync();
|
|
clipboardy.read().then(toPaste => {
|
|
str = toPaste;
|
|
});
|