StrategyDefinition
Defined in: src/pipeline-builder.ts:7
A strategy waiting to be built: what retryStrategy(...), timeoutStrategy(...) etc. return.
Type Parameters
Section titled “Type Parameters”T = any
E = never
Properties
Section titled “Properties”catches?
Section titled “catches?”
readonlyoptionalcatches?: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).
create
Section titled “create”
readonlycreate:StrategyFactory<T>
Defined in: src/pipeline-builder.ts:10
errors?
Section titled “errors?”
readonlyoptionalerrors?:E
Defined in: src/pipeline-builder.ts:12
Type-only: the errors this strategy can raise, collected into pipeline.settle()’s error type.
readonlyname:string|undefined
Defined in: src/pipeline-builder.ts:9
Labels telemetry events.