API reference › @evolu/common › Task › RunEventData
type RunEventData =
| Readonly<{
type: "ChildAdded";
childId: string &
import("/vercel/path0/packages/common/src/Brand").Brand<"Id">;
}>
| Readonly<{
type: "ChildRemoved";
childId: string &
import("/vercel/path0/packages/common/src/Brand").Brand<"Id">;
}>
| Readonly<{
type: "StateChanged";
state:
| Readonly<{ type: "Running" }>
| Readonly<{ type: "Disposing" }>
| Readonly<{
result:
| Readonly<{ value: unknown; ok: true }>
| Readonly<{ error: unknown; ok: false }>;
type: "Settled";
outcome:
| Readonly<{ value: unknown; ok: true }>
| Readonly<{ error: unknown; ok: false }>;
}>;
}>;
Defined in: packages/common/src/Task.ts:1045
The event-specific payload of a RunEvent.