---
title: NextFunction
---

# NextFunction

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/fetch-router/src/lib/middleware.ts#L106" target="_blank">View Source</a>

## Summary

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

## Signature

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

```