25 lines
570 B
TypeScript
25 lines
570 B
TypeScript
import 'vue';
|
|
|
|
type EventHandler = (...args: any[]) => void;
|
|
|
|
declare module 'vue' {
|
|
interface ComponentCustomProps {
|
|
id?: string;
|
|
role?: string;
|
|
tabindex?: number;
|
|
onClick?: EventHandler;
|
|
onTouchend?: EventHandler;
|
|
onTouchmove?: EventHandler;
|
|
onTouchstart?: EventHandler;
|
|
onTouchcancel?: EventHandler;
|
|
onTouchmovePassive?: EventHandler;
|
|
onTouchstartPassive?: EventHandler;
|
|
}
|
|
|
|
interface HTMLAttributes {
|
|
onTouchmovePassive?: EventHandler;
|
|
onTouchstartPassive?: EventHandler;
|
|
onClickCapture?: EventHandler;
|
|
}
|
|
}
|