Skip to content

InterceptorNext

@tsed/di

Usage

typescript
import { InterceptorNext } from "@tsed/di";

See /packages/di/src/common/interfaces/InterceptorContext.ts.

Overview

ts
interface InterceptorNext {
    <T>(err?: Error): T;
}

Description

Function signature for proceeding to the next interceptor or method.

Call this function in an interceptor to continue the interceptor chain. Pass an error to short-circuit execution and propagate the error.

ts
<T>(err?: Error): T;

Released under the MIT License.