yann-clipboard
TypeScript icon, indicating that this package has built-in type declarations

1.1.9 • Public • Published

yann-clipboard

介绍

clipboard

/**
 * 剪贴板复制
 * @param {string} value
 * @returns {Promise<void>}
 */
export declare function copy(value: string): Promise<void>;

/**
 * 剪贴板粘贴
 * @returns {Promise<string>}
 */
export declare function paste(): Promise<string>;

/**
 * 页面复制
 */
export declare function pageCopy<T>(value: T): Promise<void>;

/**
 * 页面粘贴
 */
export declare function pagePaste(): Promise<unknown>;

Readme

Keywords

Package Sidebar

Install

npm i yann-clipboard

Weekly Downloads

1

Version

1.1.9

License

MIT

Unpacked Size

96.1 kB

Total Files

6

Last publish

Collaborators

  • saintlovei