( command: string, args?: Record<string, unknown>, )
| 334 | } |
| 335 | |
| 336 | export async function invokeTauri<T>( |
| 337 | command: string, |
| 338 | args?: Record<string, unknown>, |
| 339 | ): Promise<T> { |
| 340 | try { |
| 341 | return await tauriInvoke<T>(command, args); |
| 342 | } catch (error) { |
| 343 | throw toTauriError(error); |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | function fromRawChannel(channel: RawChannel): Channel { |
| 348 | return { |
no test coverage detected