amis-rpc-design/node_modules/copy-to-clipboard/index.d.ts
2023-10-07 19:42:30 +08:00

15 lines
477 B
TypeScript

// Type definitions for copy-to-clipboard 3.0
// Project: https://github.com/sudodoki/copy-to-clipboard
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>, MartynasZilinskas <https://github.com/MartynasZilinskas>
interface Options {
debug?: boolean;
message?: string;
format?: string; // MIME type
onCopy?: (clipboardData: object) => void;
}
declare function copy(text: string, options?: Options): boolean;
declare namespace copy { }
export = copy;