Skip to content

CreateApprovalGateOptions

Defined in: src/mft/approvals.ts:204

Options accepted by createApprovalGate.

PropertyTypeDescriptionDefined in
approvalId(input: { route: MftRoute; }) => stringFunction that derives an approval id from each route invocation.src/mft/approvals.ts:210
now?() => DateOptional clock used for requestedAt/resolvedAt.src/mft/approvals.ts:212
onRequested?(request: ApprovalRequest) => voidObserver fired when a new approval request is created.src/mft/approvals.ts:214
registryApprovalRegistryRegistry that holds approval requests.src/mft/approvals.ts:206
runnerScheduleRouteRunnerUnderlying runner that executes the route once approval is granted.src/mft/approvals.ts:208