forked from Inndy/vue-clipboard2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
26 lines (25 loc) · 676 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
declare module 'vue-clipboard2' {
import Vue, { PluginFunction, WatchOptions } from 'vue'
module "vue/types/vue" {
interface Vue {
$clipboardConfig: {
autoSetContainer: boolean,
appendToBody: boolean
}
$copyText(text: string, container?: object | HTMLElement | null): Promise<{
action: string,
text: string,
trigger: String | HTMLElement | HTMLCollection | NodeList,
clearSelection: () => void
}>
}
}
class VueClipboard {
static install: PluginFunction<never>
static config: {
autoSetContainer: boolean
appendToBody: boolean
}
}
export default VueClipboard
}