papi-dts
Preparing search index...
shared/services/command.service
sendCommand
Variable sendCommand
Const
sendCommand
:
<
CommandName
extends
keyof
CommandHandlers
>
(
commandName
:
CommandName
,
...
args
:
Parameters
<
CommandHandlers
[
CommandName
]
>
,
)
=>
Promise
<
Awaited
<
ReturnType
<
CommandHandlers
[
CommandName
]
>
>
>
Send a command to the backend.
Type declaration
<
CommandName
extends
keyof
CommandHandlers
>
(
commandName
:
CommandName
,
...
args
:
Parameters
<
CommandHandlers
[
CommandName
]
>
,
)
:
Promise
<
Awaited
<
ReturnType
<
CommandHandlers
[
CommandName
]
>
>
>
Type Parameters
CommandName
extends
keyof
CommandHandlers
Parameters
commandName
:
CommandName
...
args
:
Parameters
<
CommandHandlers
[
CommandName
]
>
Returns
Promise
<
Awaited
<
ReturnType
<
CommandHandlers
[
CommandName
]
>
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
papi-dts
Loading...
Send a command to the backend.