mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
500 B
TypeScript
18 lines
500 B
TypeScript
// Type definitions for clipboard-js 0.3.1
|
|
// Project: https://github.com/lgarron/clipboard.js
|
|
// Definitions by: Mark Wong Siang Kai <https://github.com/markwongsk>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace clipboard {
|
|
|
|
interface IClipboardJsStatic {
|
|
copy(val: string | Element): Promise<void>;
|
|
paste(): Promise<string>;
|
|
}
|
|
}
|
|
|
|
declare var clipboard: clipboard.IClipboardJsStatic;
|
|
|
|
export = clipboard;
|
|
export as namespace clipboard;
|