---
lang: en
title: 'API docs: rest.sequencefunction'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.sequencefunction.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [SequenceFunction](./rest.sequencefunction.md)

## SequenceFunction type

A sequence function is a function implementing a custom sequence of actions to handle an incoming request.

<b>Signature:</b>

```typescript
export declare type SequenceFunction = (context: RequestContext, sequence: DefaultSequence) => Promise<void> | void;
```

