UNPKG

tdesign-vue-next

Version:
10 lines (9 loc) 356 B
import { ComponentPublicInstance } from 'vue'; export type EmitEventName = { event: string; method: string; } | string; export declare function getPropsApiByEvent(eventName: string): string; export declare function emitEvent<T extends any[]>(vm: ComponentPublicInstance & { $props: Record<string, any>; }, eventName: string, ...args: T): void;