rest-vir - v1.2.6
Preparing search index...
ContextInitParams
Type Alias ContextInitParams<ServiceName, EndpointsInit, WebSocketsInit>
ContextInitParams
:
ConstructPathParams
<
EndpointsInit
extends
NoParam
?
NoParam
:
WithFinalWebSocketProps
<
Values
<
WebSocketsInit
>
,
any
>
[
"path"
]
,
>
&
{
endpointDefinition
?:
EndpointsInit
extends
NoParam
?
EndpointDefinition
:
WithFinalEndpointProps
<
Values
<
EndpointsInit
>
,
Extract
<
keyof
EndpointsInit
,
EndpointPathBase
>
,
>
;
method
:
HttpMethod
;
request
:
ServerRequest
;
requestData
:
EndpointsInit
extends
NoParam
?
unknown
:
WithFinalEndpointProps
<
Values
<
EndpointsInit
>
,
Extract
<
keyof
EndpointsInit
,
EndpointPathBase
>
,
>
[
"RequestType"
]
;
requestHeaders
:
IncomingHttpHeaders
;
response
:
ServerResponse
;
searchParams
:
ReplaceUndefinedWithEmptyObject
<
|
(
WebSocketsInit
extends
NoParam
?
BaseSearchParams
|
undefined
:
WithFinalWebSocketProps
<
Values
<
WebSocketsInit
>
,
any
>
[
"SearchParamsType"
]
)
|
(
EndpointsInit
extends
NoParam
?
BaseSearchParams
|
undefined
:
WithFinalEndpointProps
<
Values
<
EndpointsInit
>
,
any
>
[
"SearchParamsType"
]
)
,
>
;
server
:
RunningServerInfo
;
service
:
MinimalService
<
ServiceName
>
;
webSocketDefinition
?:
WebSocketsInit
extends
NoParam
?
WebSocketDefinition
:
WithFinalWebSocketProps
<
Values
<
WebSocketsInit
>
,
Extract
<
keyof
WebSocketsInit
,
EndpointPathBase
>
,
>
;
}
Parameters for
ContextInit
.
Type Parameters
ServiceName
extends
string
=
any
EndpointsInit
extends
BaseServiceEndpointsInit
|
NoParam
=
NoParam
WebSocketsInit
extends
BaseServiceWebSocketsInit
|
NoParam
=
NoParam
Type Declaration
Optional
endpointDefinition
?:
EndpointsInit
extends
NoParam
?
EndpointDefinition
:
WithFinalEndpointProps
<
Values
<
EndpointsInit
>
,
Extract
<
keyof
EndpointsInit
,
EndpointPathBase
>
,
>
method
:
HttpMethod
request
:
ServerRequest
requestData
:
EndpointsInit
extends
NoParam
?
unknown
:
WithFinalEndpointProps
<
Values
<
EndpointsInit
>
,
Extract
<
keyof
EndpointsInit
,
EndpointPathBase
>
,
>
[
"RequestType"
]
requestHeaders
:
IncomingHttpHeaders
response
:
ServerResponse
searchParams
:
ReplaceUndefinedWithEmptyObject
<
|
(
WebSocketsInit
extends
NoParam
?
BaseSearchParams
|
undefined
:
WithFinalWebSocketProps
<
Values
<
WebSocketsInit
>
,
any
>
[
"SearchParamsType"
]
)
|
(
EndpointsInit
extends
NoParam
?
BaseSearchParams
|
undefined
:
WithFinalEndpointProps
<
Values
<
EndpointsInit
>
,
any
>
[
"SearchParamsType"
]
)
,
>
server
:
RunningServerInfo
The actual running server info.
service
:
MinimalService
<
ServiceName
>
Optional
webSocketDefinition
?:
WebSocketsInit
extends
NoParam
?
WebSocketDefinition
:
WithFinalWebSocketProps
<
Values
<
WebSocketsInit
>
,
Extract
<
keyof
WebSocketsInit
,
EndpointPathBase
>
,
>
Package
@rest-vir/implement-service
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
rest-vir - v1.2.6
Loading...
Parameters for ContextInit.