update type for emitter

This commit is contained in:
vitormalencar
2021-01-24 16:53:30 +01:00
parent 9870b14e80
commit b460d6864c
2 changed files with 4 additions and 2 deletions

4
src/clipboard.d.ts vendored
View File

@@ -1,5 +1,7 @@
/// <reference lib="dom"/>
import { TinyEmitter } from 'tiny-emitter';
type Action = 'cut' | 'copy';
type Target = string | HTMLElement;
@@ -7,7 +9,7 @@ type Target = string | HTMLElement;
type Trigger = string | HTMLElement | HTMLCollection | NodeList;
type Options = {
emmiter?: any;
emmiter?: TinyEmitter;
text?: string;
action?: Action;
target?: Element;