Type Alias: ScrapperOutputMiddlewareFn<R>
ts
type ScrapperOutputMiddlewareFn<R> = (
ctx: ScrapperResponseContext<R>,
next: NextFn,
) => void | Promise<void>;Defined in: batteries/tools/scrapper/shared.ts:161
An output-pipeline stage over a verb's ScrapperResponseContext.
Type Parameters
| Type Parameter |
|---|
R |
Parameters
| Parameter | Type |
|---|---|
ctx | ScrapperResponseContext<R> |
next | NextFn |
Returns
void | Promise<void>