vant/src/vue-tsx-shim.d.ts
2021-02-11 12:34:25 +08:00

20 lines
496 B
TypeScript

import 'vue';
type EventHandler = (...args: any[]) => void;
// TODO
// should be removed after Vue supported component events typing
// see: https://github.com/vuejs/vue-next/issues/1553
// https://github.com/vuejs/vue-next/issues/3029
declare module 'vue' {
interface ComponentCustomProps {
role?: string;
tabindex?: number;
onClick?: EventHandler;
onClosed?: EventHandler;
onChange?: EventHandler;
onToggle?: EventHandler;
onClickStep?: EventHandler;
}
}