Skip to content

Packages  ›  trotsky  ›  StepTapInterceptor

StepTapInterceptor type

Defines the type for a function that intercepts a Step instance. The interceptor can be synchronous or asynchronous.

Signature:

typescript
export type StepTapInterceptor = ((step: Step) => unknown) | ((step: Step) => Promise<unknown>);

References: Step