Improved flow type declaration

This commit is contained in:
squidfunk 2017-05-31 15:31:38 +02:00
parent 13cd1d1a26
commit 3b544b94d9

View File

@ -26,10 +26,16 @@
declare module "clipboard" {
/* Class: Clipboard action */
declare class ClipboardAction {
trigger: HTMLElement,
clearSelection(): void
}
/* Class: Clipboard */
declare class Clipboard {
static isSupported(): boolean,
on(event: string, cb: Function): void
on(name: string, cb: (action: ClipboardAction) => void): void
}
/* Exports */