---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/type-aliases/ScrapperInputMiddlewareFn.md
description: 'An input-pipeline stage. Onion middleware over [`ScrapperRequestContext`](https://adk.nht.io/api/@nhtio/adk/batteries/interfaces/ScrapperRequestContext).'
---

# Type Alias: ScrapperInputMiddlewareFn

```ts
type ScrapperInputMiddlewareFn = (
  ctx: ScrapperRequestContext,
  next: NextFn,
) => void | Promise<void>;
```

Defined in: [batteries/tools/scrapper/shared.ts:155](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/scrapper/shared.ts#L155)

An input-pipeline stage. Onion middleware over [ScrapperRequestContext](../interfaces/ScrapperRequestContext.md).

## Parameters

| Parameter | Type                                                                |
| --------- | ------------------------------------------------------------------- |
| `ctx`     | [`ScrapperRequestContext`](../interfaces/ScrapperRequestContext.md) |
| `next`    | `NextFn`                                                            |

## Returns

`void` | `Promise`<`void`>
