Page Contents
Home > @loopback/rest > SequenceFunction
SequenceFunction type
A sequence function is a function implementing a custom sequence of actions to handle an incoming request.
Signature:
export type SequenceFunction = (context: RequestContext, sequence: DefaultSequence) => ValueOrPromise<void>;
References: RequestContext, DefaultSequence, ValueOrPromise