diff --git a/packages/sdk/src/index.test.ts b/packages/sdk/src/index.test.ts index 62aa33480d7..f23b7400327 100644 --- a/packages/sdk/src/index.test.ts +++ b/packages/sdk/src/index.test.ts @@ -30,7 +30,7 @@ class FakeTransport implements OpenClawTransport { this.calls.push({ method, params, options }); const response = this.responses[method]; if (typeof response === "function") { - return (await (response as FakeResponseHandler)(params, options, this)) as T; + return (await response(params, options, this)) as T; } return response as T; }