rest-vir - v1.0.0
Preparing search index...
ServiceImplementation
Type Alias ServiceImplementation<Context, ServiceName, EndpointsInit, WebSocketsInit>
ServiceImplementation
:
Omit
<
ServiceDefinition
<
ServiceName
,
EndpointsInit
,
WebSocketsInit
>
,
"endpoints"
|
"webSockets"
,
>
&
{
ContextType
:
Context
;
createContext
:
|
ContextInit
<
Context
,
ServiceName
,
EndpointsInit
,
WebSocketsInit
>
|
undefined
;
customHeaders
:
string
[]
;
endpoints
:
{
[
EndpointPath
in
keyof
ServiceDefinition
<
ServiceName
,
EndpointsInit
,
WebSocketsInit
,
>
[
"endpoints"
]
]
:
EndpointPath
extends
EndpointPathBase
?
ImplementedEndpoint
<
Context
,
ServiceDefinition
<
ServiceName
,
EndpointsInit
,
WebSocketsInit
>
[
"endpoints"
]
[
EndpointPath
]
,
ServiceName
,
>
:
never
}
;
logger
:
ServiceLogger
;
postHook
:
PostHook
|
undefined
;
webSockets
:
{
[
WebSocketPath
in
keyof
ServiceDefinition
<
ServiceName
,
EndpointsInit
,
WebSocketsInit
,
>
[
"webSockets"
]
]
:
WebSocketPath
extends
EndpointPathBase
?
ImplementedWebSocket
<
Context
,
ServiceName
,
ServiceDefinition
<
ServiceName
,
EndpointsInit
,
WebSocketsInit
>
[
"webSockets"
]
[
WebSocketPath
]
,
>
:
never
}
;
}
A finalized service implementation created by
implementService
.
Type Parameters
Context
=
undefined
ServiceName
extends
string
=
any
EndpointsInit
extends
BaseServiceEndpointsInit
|
NoParam
=
NoParam
WebSocketsInit
extends
BaseServiceWebSocketsInit
|
NoParam
=
NoParam
Package
@rest-vir/implement-service
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
rest-vir - v1.0.0
Loading...
A finalized service implementation created by implementService.