UNPKG

570 BTypeScriptView Raw
1import 'vue';
2
3type EventHandler = (...args: any[]) => void;
4
5declare module 'vue' {
6 interface ComponentCustomProps {
7 id?: string;
8 role?: string;
9 tabindex?: number;
10 onClick?: EventHandler;
11 onTouchend?: EventHandler;
12 onTouchmove?: EventHandler;
13 onTouchstart?: EventHandler;
14 onTouchcancel?: EventHandler;
15 onTouchmovePassive?: EventHandler;
16 onTouchstartPassive?: EventHandler;
17 }
18
19 interface HTMLAttributes {
20 onTouchmovePassive?: EventHandler;
21 onTouchstartPassive?: EventHandler;
22 onClickCapture?: EventHandler;
23 }
24}