next-api-utils
Preparing search index...
ParsedRequest
Type Alias ParsedRequest<RequestBody, QueryParameters, PathParameters>
Representing a parsed request from validateRequest.
type
ParsedRequest
<
RequestBody
=
never
,
QueryParameters
extends
undefined
|
Record
<
string
,
unknown
>
=
never
,
PathParameters
extends
undefined
|
Record
<
string
,
string
|
string
[]
>
=
never
,
>
=
{
body
:
never
extends
RequestBody
?
undefined
:
RequestBody
;
params
:
never
extends
PathParameters
?
undefined
:
PathParameters
;
query
:
never
extends
QueryParameters
?
undefined
:
QueryParameters
;
}
Type Parameters
RequestBody
=
never
QueryParameters
extends
undefined
|
Record
<
string
,
unknown
>
=
never
PathParameters
extends
undefined
|
Record
<
string
,
string
|
string
[]
>
=
never
Index
Properties
body
params
query
Properties
body
body
:
never
extends
RequestBody
?
undefined
:
RequestBody
params
params
:
never
extends
PathParameters
?
undefined
:
PathParameters
query
query
:
never
extends
QueryParameters
?
undefined
:
QueryParameters
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
body
params
query
next-api-utils
Loading...
Representing a parsed request from validateRequest.