StoryMapJS API
    Preparing search index...

    Type Alias FiredEvent<M, K>

    FiredEvent: M[K] & { target: unknown; type: K }

    What a listener receives: the payload, plus the framework's own fields.

    Kept as an intersection because fire merges them into one object — that is what a handler gets. As a side effect it also fixes the type clobbering at the type level: intersecting type: "loaded" with type?: string yields "loaded".

    Type Parameters

    • M
    • K extends keyof M & string