@webroute/routeInterfaces
ParseInputsFn
Type Parameters
Type Parameter | Default type |
---|---|
TParams | unknown |
TQuery | unknown |
TBody | unknown |
THeaders | unknown |
ParseInputsFn<
T
>(key
):Promise
<object
[T
]>
Parses the selected input part
Type Parameters
Type Parameter |
---|
T extends InputTypeKey |
Parameters
Parameter | Type |
---|---|
key | T |
Returns
Promise
<object
[T
]>
ParseInputsFn():
Promise
<object
>
Parses all inputs and returns as an object
Returns
Promise
<object
>
Name | Type |
---|---|
body | TBody |
headers | THeaders |
params | TParams |
query | TQuery |