diff --git a/libs/common/src/platform/services/sdk/rpc/executor.spec.ts b/libs/common/src/platform/services/sdk/rpc/executor.spec.ts index 7ab9ef01c9b..cd699707ba9 100644 --- a/libs/common/src/platform/services/sdk/rpc/executor.spec.ts +++ b/libs/common/src/platform/services/sdk/rpc/executor.spec.ts @@ -1,5 +1,5 @@ -import { executeBatchCommands } from "./executor"; import { RpcError } from "./error"; +import { executeBatchCommands } from "./executor"; import { BatchCommand, serializeSymbol } from "./protocol"; import { ReferenceStore } from "./reference-store"; @@ -126,7 +126,7 @@ describe("Batch executor", () => { it("calls method fetched using symbol property", async () => { const commands: BatchCommand[] = [ - { method: "get", propertySymbol: serializeSymbol(Symbol.dispose) }, + { method: "get", propertySymbol: serializeSymbol(Symbol.asyncDispose) }, { method: "apply", args: [] }, ]; diff --git a/libs/common/src/platform/services/sdk/rpc/remote.ts b/libs/common/src/platform/services/sdk/rpc/remote.ts index dea5e643e32..6a521ea7bbf 100644 --- a/libs/common/src/platform/services/sdk/rpc/remote.ts +++ b/libs/common/src/platform/services/sdk/rpc/remote.ts @@ -18,7 +18,7 @@ export type Transfer = { * Force a by-value snapshot transfer of this remote reference. Resolves to a serializable value. * If the object is not serializable at runtime, this will throw. */ - transfer: Promise; + transfer: Resolved; }; export type RemoteReference = Remote & Transfer;