oxd/types/composables/useEventBus.d.ts

10 lines
279 B
TypeScript
Raw Permalink Normal View History

2023-05-02 09:36:43 +08:00
declare class EventBus {
private queue;
constructor();
$on(name: string, callback: (data: any) => void): void;
$off(name: string, callback: () => void): void;
$emit(name: string, data: any): void;
}
export default function useEventBus(): EventBus;
export {};