SohlTriggerContext: SohlTriggerContextVariant & {
    payload?: Record<string, unknown>;
}

A trigger context as dispatched to a document. Every variant additionally carries an optional payload — the subscription's payload, forwarded by SohlEventQueue.fire so the dispatched action can read it from ctx.payload (the action context's scope).

Type declaration

  • Optionalpayload?: Record<string, unknown>

    Data attached to the subscription, forwarded to the dispatched action as part of its context scope.