Webroute

@webroute/routeInterfaces

DecoratedRequestHandler

Extended by

Type Parameters

Type ParameterDefault type
TParamsunknown
TQueryunknown
TBodyunknown
THeadersunknown
TOutputunknown
TStateunknown
TProvidersunknown

DecoratedRequestHandler(request, ctx): Awaitable<Response | TOutput>

Parameters

ParameterType
requestRequest
ctxobject
ctx.parseParseInputsFn<unknown extends TParams ? Record<string, undefined | string> : TParams, unknown extends TQuery ? Record<string, undefined | string> : TQuery, unknown extends TBody ? TBody : TBody, unknown extends THeaders ? Record<string, undefined | string> : THeaders>
ctx.servicesServiceMap<TProviders>
ctx.state{ [KeyType in string | number | symbol]: TState[KeyType] }

Returns

Awaitable<Response | TOutput>

On this page