Webroute

@webroute/routeInterfaces

ParseInputsFn

Type Parameters

Type ParameterDefault type
TParamsunknown
TQueryunknown
TBodyunknown
THeadersunknown

ParseInputsFn<T>(key): Promise<object[T]>

Parses the selected input part

Type Parameters

Type Parameter
T extends InputTypeKey

Parameters

ParameterType
keyT

Returns

Promise<object[T]>

ParseInputsFn(): Promise<object>

Parses all inputs and returns as an object

Returns

Promise<object>

NameType
bodyTBody
headersTHeaders
paramsTParams
queryTQuery

On this page