From e4a214ca60acb09c077af8ef17a67b825e8939df Mon Sep 17 00:00:00 2001 From: Cfp Date: Mon, 11 Aug 2025 13:54:14 +0200 Subject: [PATCH] fix: types and arguments --- guest-js/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/guest-js/index.ts b/guest-js/index.ts index 8dd6855..3848d84 100644 --- a/guest-js/index.ts +++ b/guest-js/index.ts @@ -4,10 +4,12 @@ type DuckResponse = { success: boolean } -export async function duck(): Promise { - return await invoke<{value?: string}>('plugin:duck|duck').then((r: DuckResponse) => r.success); +export async function duck(): Promise { + // @ts-expect-error - not typed + return await invoke('plugin:duck|duck').then((r: DuckResponse) => r.success); } -export async function unduck(value: string): Promise { - return await invoke<{value?: string}>('plugin:duck|unduck').then((r: DuckResponse) => r.success); +export async function unduck(): Promise { + // @ts-expect-error - not typed + return await invoke('plugin:duck|unduck').then((r: DuckResponse) => r.success); }