Skip to content
1 min read · 54 words

Type Alias: ScrapperOutputMiddlewareFn<R> ​

ts
type ScrapperOutputMiddlewareFn<R> = (
  ctx: ScrapperResponseContext<R>,
  next: NextFn,
) => void | Promise<void>;

Defined in: src/batteries/tools/scrapper/shared.ts:171

An output-pipeline stage over a verb's ScrapperResponseContext.

Type Parameters ​

Type Parameter
R

Parameters ​

ParameterType
ctxScrapperResponseContext<R>
nextNextFn

Returns ​

void | Promise<void>