@tsoa/runtime
Advanced tools
Comparing version 3.6.0 to 3.6.1
import { IsValidHeader } from '../utils/isHeaderType'; | ||
export declare type HttpStatusCodeLiteral = 100 | 101 | 102 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 422 | 423 | 424 | 426 | 428 | 429 | 431 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511; | ||
export declare type HttpStatusCodeStringLiteral = `${HttpStatusCodeLiteral}`; | ||
export declare type HttpStatusCodeStringLiteral = '100' | '101' | '102' | '200' | '201' | '202' | '203' | '204' | '205' | '206' | '207' | '208' | '226' | '300' | '301' | '302' | '303' | '304' | '305' | '307' | '308' | '400' | '401' | '402' | '403' | '404' | '405' | '406' | '407' | '408' | '409' | '410' | '411' | '412' | '413' | '414' | '415' | '416' | '417' | '418' | '422' | '423' | '424' | '426' | '428' | '429' | '431' | '500' | '501' | '502' | '503' | '504' | '505' | '506' | '507' | '508' | '510' | '511'; | ||
export declare type OtherValidOpenApiHttpStatusCode = '1XX' | '2XX' | '3XX' | '4XX' | '5XX' | 'default'; | ||
export declare type TsoaResponse<T extends HttpStatusCodeLiteral, BodyType, HeaderType extends IsValidHeader<HeaderType> = {}> = (status: T, data: BodyType, headers?: HeaderType) => any; |
{ | ||
"name": "@tsoa/runtime", | ||
"description": "Build swagger-compliant REST APIs using TypeScript and Node", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"main": "./dist/index.js", | ||
@@ -47,3 +47,3 @@ "typings": "./dist/index.d.ts", | ||
}, | ||
"gitHead": "e4769186982e902a099e822fa166d5ab16ce5079" | ||
"gitHead": "f92e524dc58bf863d8979cea43583f0a42b17a84" | ||
} |
@@ -63,3 +63,61 @@ import { IsValidHeader } from '../utils/isHeaderType'; | ||
export type HttpStatusCodeStringLiteral = `${HttpStatusCodeLiteral}`; | ||
export type HttpStatusCodeStringLiteral = | ||
| '100' | ||
| '101' | ||
| '102' | ||
| '200' | ||
| '201' | ||
| '202' | ||
| '203' | ||
| '204' | ||
| '205' | ||
| '206' | ||
| '207' | ||
| '208' | ||
| '226' | ||
| '300' | ||
| '301' | ||
| '302' | ||
| '303' | ||
| '304' | ||
| '305' | ||
| '307' | ||
| '308' | ||
| '400' | ||
| '401' | ||
| '402' | ||
| '403' | ||
| '404' | ||
| '405' | ||
| '406' | ||
| '407' | ||
| '408' | ||
| '409' | ||
| '410' | ||
| '411' | ||
| '412' | ||
| '413' | ||
| '414' | ||
| '415' | ||
| '416' | ||
| '417' | ||
| '418' | ||
| '422' | ||
| '423' | ||
| '424' | ||
| '426' | ||
| '428' | ||
| '429' | ||
| '431' | ||
| '500' | ||
| '501' | ||
| '502' | ||
| '503' | ||
| '504' | ||
| '505' | ||
| '506' | ||
| '507' | ||
| '508' | ||
| '510' | ||
| '511'; | ||
@@ -66,0 +124,0 @@ export type OtherValidOpenApiHttpStatusCode = '1XX' | '2XX' | '3XX' | '4XX' | '5XX' | 'default'; |
Sorry, the diff of this file is not supported yet
231539
4203