Skip to content
Typecorev0.12.1

DispatchResult

A middleware's after() receives this once the handler settles. caught holds the thrown value on refused and failed.

type DispatchResult =
    | { readonly outcome: "handled" }
    | {
          readonly outcome: "refused" | "failed";
          readonly caught: unknown;
      };