vapor-chamber API reference - v1.3.0
    Preparing search index...

    Type Alias BusInspection

    Complete snapshot of a bus's internal topology. Returned by inspectBus() for debugging, DevTools, and ops diagnostics.

    import { inspectBus } from 'vapor-chamber';
    const info = inspectBus(bus);
    console.log(info.actions); // ['cartAdd', 'cartRemove']
    console.log(info.undoActions); // ['cartAdd'] — only these can rollback
    console.log(info.pluginCount); // 3
    console.log(info.sealed); // true
    type BusInspection = {
        actions: string[];
        undoActions: string[];
        responderActions: string[];
        pluginCount: number;
        pluginPriorities: number[];
        beforeHookCount: number;
        afterHookCount: number;
        listenerPatterns: string[];
        sealed: boolean;
        dispatchDepth: number;
        activeTimers: number;
    }
    Index

    Properties

    actions: string[]

    All registered action names.

    undoActions: string[]

    Actions that have undo handlers registered.

    responderActions: string[]

    Actions that have respond() handlers registered.

    pluginCount: number

    Number of installed plugins.

    pluginPriorities: number[]

    Plugin priorities in execution order (highest first).

    beforeHookCount: number

    Number of beforeHooks.

    afterHookCount: number

    Number of afterHooks.

    listenerPatterns: string[]

    Pattern listeners: each entry is the pattern string.

    sealed: boolean

    Whether the bus is sealed.

    dispatchDepth: number

    Current nested dispatch depth (0 when idle).

    activeTimers: number

    Number of active throttle timers on this bus instance.