import { IsValidHeader } from '@tsoa/runtime/dist/utils/isHeaderType'; import { HttpStatusCodeLiteral, HttpStatusCodeStringLiteral, OtherValidOpenApiHttpStatusCode } from '@tsoa/runtime/dist/interfaces/response'; export function SuccessResponse = {}>(name: string | number, description?: string): Function { return () => { return; }; } export function Response = {}>( name: HttpStatusCodeLiteral | HttpStatusCodeStringLiteral | OtherValidOpenApiHttpStatusCode, description?: string, example?: ExampleType, ): Function { return () => { return; }; } /** * Inject a library-agnostic responder function that can be used to construct type-checked (usually error-) responses. * * The type of the responder function should be annotated `TsoaResponse` in order to support OpenAPI documentation. */ export function Res(): Function { return () => { return; }; }