Skip to content

ResponseFilterMethods

@tsed/platform-response-filter

Usage

typescript
import { ResponseFilterMethods } from "@tsed/platform-response-filter";

See /packages/platform/platform-response-filter/src/types/interfaces/ResponseFilterMethods.ts.

Overview

ts
interface ResponseFilterMethods<T = unknown> {
    transform(data: T, ctx: BaseContext): any;
}

Description

A list of response filters must be called before returning a response to the consumer. See more on Response filters.

transform

ts
transform(data: T, ctx: BaseContext): any;

Released under the MIT License.