UNPKG

@tsed/common

Version:
6 lines (5 loc) 431 B
import { Type } from "@tsed/core"; import { ResponseFilterMethods } from "../interfaces/ResponseFilterMethods"; export declare type ResponseFilterKey = "*/*" | "application/json" | "text/html" | "plain/text" | string; export declare const ResponseFiltersContainer: Map<string, Type<ResponseFilterMethods<unknown>>>; export declare function registerResponseFilter(type: ResponseFilterKey, token: Type<ResponseFilterMethods>): void;