Skip to content
Buy me a coffee

StrategyDefinition

Defined in: src/pipeline-builder.ts:7

A strategy waiting to be built: what retryStrategy(...), timeoutStrategy(...) etc. return.

T = any

E = never

readonly optional catches?: string

Defined in: src/pipeline-builder.ts:14

Type-only: error codes it catches from the strategies added after it (string = all, e.g. a default fallback).


readonly create: StrategyFactory<T>

Defined in: src/pipeline-builder.ts:10


readonly optional errors?: E

Defined in: src/pipeline-builder.ts:12

Type-only: the errors this strategy can raise, collected into pipeline.settle()’s error type.


readonly name: string | undefined

Defined in: src/pipeline-builder.ts:9

Labels telemetry events.