UNPKG

@glandjs/events

Version:

A fast, zero‑dependency event broker and message bus for building scalable, event‑driven applications.

7 lines (6 loc) 553 B
import type { EventRecord } from '../types/common.types'; import type { BroadcastMethod, CallMethod, ChannelMethod, EmitMethod, GetListenerMethod, OffMethod, OnceMethod, OnMethod, WatchMethod } from './events/event-api.interface'; export interface Channel<TEvents extends EventRecord> extends OnMethod<TEvents>, OnceMethod<TEvents>, OffMethod<TEvents>, CallMethod<TEvents>, EmitMethod<TEvents>, CallMethod<TEvents>, GetListenerMethod<TEvents>, ChannelMethod<TEvents>, BroadcastMethod<TEvents>, WatchMethod<TEvents> { id: string; name: string; }