---
title: "NextFunction"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/fetch-router/src/lib/middleware.ts#L102"
---

# NextFunction

## Summary

A function that invokes the next middleware or handler in the chain.

## Signature

```ts
type NextFunction = () => Promise<Response>

```