From eed863173014e75d6e16d97ffe4a5eda4b7073b6 Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Mon, 27 Oct 2025 10:32:02 +0100 Subject: [PATCH] chore: add short comment about serializable args --- libs/common/src/platform/services/sdk/remote.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/common/src/platform/services/sdk/remote.ts b/libs/common/src/platform/services/sdk/remote.ts index dea134110ef..48392b3faa9 100644 --- a/libs/common/src/platform/services/sdk/remote.ts +++ b/libs/common/src/platform/services/sdk/remote.ts @@ -17,6 +17,9 @@ export type RemoteValue = T extends { free(): void } : Promise; export type RemoteFunction any> = >( + // Enforce serializability of RPC arguments here. + // If we wanted to we could allow for remote references as arguments, we could do that here. + // In that case the client would also need to maintain a ReferenceStore for outgoing references. ...args: SerializableArgs ) => RemoteValue>;