Type Alias ParsedRequest<RequestBody, QueryParameters, PathParameters>

ParsedRequest<RequestBody, QueryParameters, PathParameters>: {
    body: never extends RequestBody
        ? undefined
        : RequestBody;
    params: never extends PathParameters
        ? undefined
        : PathParameters;
    query: never extends QueryParameters
        ? undefined
        : QueryParameters;
}

Representing a parsed request from validateRequest.

Type Parameters

  • RequestBody = never
  • QueryParameters extends undefined | Record<string, unknown> = never
  • PathParameters extends undefined | Record<string, string | string[]> = never