Kaizen
Browse modulesLifecyclelifecycle/serverTypes

Type Alias: LifecycleEffectBuilder

type LifecycleEffectBuilder = (ctx: GuardContext) => 
  | Record<string, unknown>
| Promise<Record<string, unknown>>;

Defined in: server/lifecycle/engine.ts:67

Declared effect → the payload it carries into the outbox. Builders execute inside send's transaction: keep them fast and deterministic, and perform external I/O only in the outbox handler.

Parameters

ParameterType
ctxGuardContext

Returns

| Record<string, unknown> | Promise<Record<string, unknown>>

On this page