# EventDispatchResult

`type` in `core` · v0.7.0

<https://docs.seedcord.org/packages/core/0.7.0/event-dispatch-result>

An event middleware's `after()` receives this once the event finishes. `outcome` reports the middleware chain alone. `handlers` holds one entry per handler that ran. A stopped chain runs none.

## Declaration

```ts
type EventDispatchResult =
    | {
          readonly outcome: "refused" | "failed";
          readonly caught: unknown;
          readonly handlers: readonly [];
      }
    | {
          readonly outcome: "handled";
          readonly handlers: readonly HandlerResult[];
      };
```
