(concat(ready$,processPlugins$) as Observable<{
plugged: PluggedModule;
cmdPluginsRes: {
execute: Awaitable<Result<void, void>>;
type: PluginType.Command;
name: string;
description: string;
}[];
}>)
(concat(ready$,processPlugins$) as Observable<{
plugged: PluggedModule;
cmdPluginsRes: {
execute: Result<void, void>;
type: PluginType.Command;
name: string;
description: string;
}[];
}>)
^^ this above snippet is what I want. I just want to resolve execute
in cmdPluginRes
so when I subscribe to the observable it would be easier to deal with the data.
i have this rxjs observable. Inside cmdPluginRes ( an array ), I have a promiseLike property execute. How could i turn this inner promise into its resolved type Result<void,void> ? Result type comes from vultix ts-results.