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>;