BridgeCallEvent type alias

Module @runic-artifex/views in @runic-artifex/views 0.23.0

type BridgeCallEvent = BridgeCallIdentity & {
    readonly phase: "start";
} | BridgeCallIdentity & {
    readonly phase: "end";
    readonly end: number;
    readonly duration: number;
    readonly outcome: BridgeCallOutcome;
    readonly revision?: number;
    readonly reason?: string;
    readonly error?: unknown;
    readonly handler?: BridgeCallHandler;
};

What the Bridge-call channel reports. start is delivered synchronously in the caller's stack (so a listener can read the DOM event that caused the call); end once the call settled, after the route reached the reply's revision. A listener ignores phases and fields it does not know.