UNPKG

svelte-slim

Version:

A lightweight event management library for Svelte.

10 lines (9 loc) 318 B
import type { EventConfig } from './types'; declare class EventBus { private listeners; on(event: string, config: EventConfig): void; off(event: string, handlerToRemove: EventConfig['handler']): void; emit(event: string, ...args: any[]): Promise<void>; } export declare const bus: EventBus; export {};