mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
types: add vue sfc shim (#8131)
This commit is contained in:
18
src/vue-tsx-shim.d.ts
vendored
Normal file
18
src/vue-tsx-shim.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user