UNPKG
tsoa-custom-decorators
Version:
latest (1.1.10-custom-decorators)
1.1.10-custom-decorators
1.1.9-custom-decorators
1.1.8-custom-decorators
Build swagger-compliant REST APIs using TypeScript and Node
github.com/lukeautry/tsoa
lukeautry/tsoa
tsoa-custom-decorators
/
src
/
decorators
/
response.ts
8 lines
(6 loc)
•
247 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
export
function
SuccessResponse
(
name
:
string
|
number
,
description
?:
string
):
any
{
return
() =>
{
return
; }; };
export
function
Response
<T>(
name
:
string
|
number
,
description
?:
string
,
example
?: T):
any
{
return
() =>
{
return
; }; };