Skip to content
1 min read · 41 words

Type Alias: SearxngOutputMiddlewareFn ​

ts
type SearxngOutputMiddlewareFn = (
  ctx: SearxngResponseContext,
  next: NextFn,
) => void | Promise<void>;

Defined in: src/batteries/tools/searxng/index.ts:134

An output-pipeline stage. Onion middleware over SearxngResponseContext.

Parameters ​

ParameterType
ctxSearxngResponseContext
nextNextFn

Returns ​

void | Promise<void>