cap-nodejs

CAP Node.js API


CAP Node.js API / cap-core/src / CapOperationContext

Interface: CapOperationContext<TTx>

Defined in: cap-core/src/models/cap-operation-context.ts:1

Type Parameters

TTx

TTx = unknown

Properties

afterCommit?

optional afterCommit?: (fn) => void

Defined in: cap-core/src/models/cap-operation-context.ts:3

Parameters

fn

() => void | Promise<void>

Returns

void


afterRollback?

optional afterRollback?: (fn) => void

Defined in: cap-core/src/models/cap-operation-context.ts:4

Parameters

fn

(error) => void | Promise<void>

Returns

void


metadata?

optional metadata?: Record<string, unknown>

Defined in: cap-core/src/models/cap-operation-context.ts:5


tx?

optional tx?: TTx

Defined in: cap-core/src/models/cap-operation-context.ts:2