mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(api): unused @ts-expect-error
This commit is contained in:
@@ -19,6 +19,10 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
// the `__TAURI_INVOKE_KEY__` variable is injected at runtime by Tauri
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
declare let __TAURI_INVOKE_KEY__: number;
|
||||
|
||||
/** @ignore */
|
||||
function uid(): string {
|
||||
const length = new Int8Array(1)
|
||||
@@ -79,7 +83,6 @@ async function invoke<T>(cmd: string, args: InvokeArgs = {}): Promise<T> {
|
||||
}, true)
|
||||
|
||||
window.rpc.notify(cmd, {
|
||||
// @ts-expect-error the `__TAURI_INVOKE_KEY__` variable is injected at runtime by Tauri
|
||||
__invokeKey: __TAURI_INVOKE_KEY__,
|
||||
callback,
|
||||
error,
|
||||
|
||||
Reference in New Issue
Block a user