@muspellheim/shared
Preparing search index...
createCommandStatus
Function createCommandStatus
createCommandStatus
<
S
=
void
,
F
=
string
>
(
status
:
{
errorMessage
?:
F
;
isSuccess
?:
boolean
;
result
?:
S
extends
void
?
undefined
:
S
;
}
,
)
:
Success
<
S
>
|
Failure
<
F
>
Create a success or failure object from a object compatible with command status.
Type Parameters
S
=
void
F
=
string
Parameters
status
:
{
errorMessage
?:
F
;
isSuccess
?:
boolean
;
result
?:
S
extends
void
?
undefined
:
S
;
}
Returns
Success
<
S
>
|
Failure
<
F
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@muspellheim/shared
Loading...
Create a success or failure object from a object compatible with command status.