vant
Version:
Mobile UI Components built on Vue
25 lines (21 loc) • 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;
}
}