---
title: NextFunction
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.2/packages/fetch-router/src/lib/middleware.ts#L90
---

# NextFunction

## Summary

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

## Signature

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

```