rest-vir - v1.0.0
Preparing search index...
attachEndpointShapeTypeGetters
Function attachEndpointShapeTypeGetters
attachEndpointShapeTypeGetters
<
const
T
extends
AnyObject
>
(
endpoint
:
T
,
)
:
asserts
endpoint
is
T
&
Pick
<
EndpointDefinition
<
_RequireAtLeastOne
<
Record
<
HttpMethod
,
boolean
>
,
HttpMethod
>
,
typeof
NoParam
,
typeof
NoParam
,
`
/
${
string
}
`
,
>
,
"RequestType"
|
"ResponseType"
,
>
Attaches request and response type-only getters to an endpoint definition.
Type Parameters
const
T
extends
AnyObject
Parameters
endpoint
:
T
Returns
asserts
endpoint
is
T
&
Pick
<
EndpointDefinition
<
_RequireAtLeastOne
<
Record
<
HttpMethod
,
boolean
>
,
HttpMethod
>
,
typeof
NoParam
,
typeof
NoParam
,
`
/
${
string
}
`
,
>
,
"RequestType"
|
"ResponseType"
,
>
Package
@rest-vir/define-service
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
rest-vir - v1.0.0
Loading...
Attaches request and response type-only getters to an endpoint definition.