mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improved flow type declaration
This commit is contained in:
parent
13cd1d1a26
commit
3b544b94d9
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user