mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
update type for emitter
This commit is contained in:
4
src/clipboard.d.ts
vendored
4
src/clipboard.d.ts
vendored
@@ -1,5 +1,7 @@
|
|||||||
/// <reference lib="dom"/>
|
/// <reference lib="dom"/>
|
||||||
|
|
||||||
|
import { TinyEmitter } from 'tiny-emitter';
|
||||||
|
|
||||||
type Action = 'cut' | 'copy';
|
type Action = 'cut' | 'copy';
|
||||||
|
|
||||||
type Target = string | HTMLElement;
|
type Target = string | HTMLElement;
|
||||||
@@ -7,7 +9,7 @@ type Target = string | HTMLElement;
|
|||||||
type Trigger = string | HTMLElement | HTMLCollection | NodeList;
|
type Trigger = string | HTMLElement | HTMLCollection | NodeList;
|
||||||
|
|
||||||
type Options = {
|
type Options = {
|
||||||
emmiter?: any;
|
emmiter?: TinyEmitter;
|
||||||
text?: string;
|
text?: string;
|
||||||
action?: Action;
|
action?: Action;
|
||||||
target?: Element;
|
target?: Element;
|
||||||
|
|||||||
Reference in New Issue
Block a user