rqbit desktop configuration before startup works

This commit is contained in:
Igor Katson 2023-12-06 15:29:11 +00:00
parent a3475784e9
commit ee996012af
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 340 additions and 8 deletions

View file

@ -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);