rqbit desktop configuration before startup works
This commit is contained in:
parent
a3475784e9
commit
ee996012af
5 changed files with 340 additions and 8 deletions
|
|
@ -23,7 +23,7 @@ function errorToUIError(path: string): (e: InvokeErrorResponse) => Promise<never
|
|||
}
|
||||
}
|
||||
|
||||
async function invokeAPI<Response>(name: string, params?: InvokeArgs): Promise<Response> {
|
||||
export async function invokeAPI<Response>(name: string, params?: InvokeArgs): Promise<Response> {
|
||||
console.log("invoking", name, params);
|
||||
const result = await invoke<Response>(name, params).catch(errorToUIError(name));
|
||||
console.log(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue