From a83525c9644bcad0db8ac6003b8adb596d11102d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 3 Oct 2026 19:09:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=9A=E6=94=B6=E7=AA=84?= =?UTF-8?q?=20home.suite=20=E7=9A=84=20asTauriListen=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - asTauriListen 形参返回类型由 Promise 改为 Promise<() => void>,与 TauriListen 的 unlisten 契约一致 --- apps/ai-game-creator-shell/tests/appSurface/home.suite.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts index fe402e716..0376b7f37 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts @@ -50,7 +50,7 @@ function asTauriListen( listen: ( event: string, handler: (event: { payload: unknown }) => void, - ) => Promise, + ) => Promise<() => void>, ): TauriListen { // 泛型 listen 与携带具体负载的 mock 结构上不可兼容,只能用 as unknown as 收敛。 return listen as unknown as TauriListen;