vue-bus-ts
Version:
vue-event-bus
19 lines (14 loc) • 426 B
TypeScript
import _Vue from 'vue'; // <-- notice the changed import
import "./vue";
export declare class Bus {
$on(action: string, fn: any): any;
$emit(action: string, params?: any): any;
$off(action: string, id: number): void;
$subscribed(action: string): boolean;
}
export declare function install(Vue: typeof _Vue): void;
declare const _default: {
Bus: typeof Bus;
install: typeof install;
};
export default _default;