rest-vir - v2.2.0
Preparing search index...
implementApi
Function implementApi
implementApi
<
HostContext
=
unknown
>
()
:
<
const
Api
extends
Readonly
<
ApiDefinition
>
,
const
EndpointPaths
extends
readonly
`
/
${
string
}
`
[]
=
[
]
,
const
WebSocketPaths
extends
readonly
`
/
${
string
}
`
[]
=
[
]
,
>
(
api
:
Readonly
<
Api
>
,
implementations
:
Readonly
<
ApiRouteImplementations
<
EndpointPaths
,
WebSocketPaths
,
NoInfer
<
HostContext
>
,
>
,
>
,
)
=>
Readonly
<
ApiImplementation
<
Api
,
HostContext
>
>
Type Parameters
HostContext
=
unknown
Returns
<
const
Api
extends
Readonly
<
ApiDefinition
>
,
const
EndpointPaths
extends
readonly
`
/
${
string
}
`
[]
=
[
]
,
const
WebSocketPaths
extends
readonly
`
/
${
string
}
`
[]
=
[
]
,
>
(
api
:
Readonly
<
Api
>
,
implementations
:
Readonly
<
ApiRouteImplementations
<
EndpointPaths
,
WebSocketPaths
,
NoInfer
<
HostContext
>
,
>
,
>
,
)
=>
Readonly
<
ApiImplementation
<
Api
,
HostContext
>
>
Package
@rest-vir/host
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
rest-vir - v2.2.0
Loading...
Package
@rest-vir/host