Skip to main content

Type Alias: ScopedTransaction<DB>

ScopedTransaction<DB> = { kind: "tenant"; scope: Scope; trx: Transaction<DB>; } | { kind: "platform"; scope: PlatformScope; trx: Transaction<DB>; }

Defined in: packages/audit-client/src/persistence/outbox.ts:37

A transaction opened by withScope or withPlatformScope, as audit.record takes it. Structural so this package need not import the platform entry point, which the lint fence reserves; isOpenedTransaction is what proves it was not built by hand.

Type Parameters​

DB​

DB extends AuditOutboxTables