1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-31 08:43:54 +00:00

chore: add short comment about serializable args

This commit is contained in:
Andreas Coroiu
2025-10-27 10:32:02 +01:00
parent 39e5ecc586
commit eed8631730

View File

@@ -17,6 +17,9 @@ export type RemoteValue<T> = T extends { free(): void }
: Promise<T>;
export type RemoteFunction<T extends (...args: any[]) => any> = <A extends Parameters<T>>(
// 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<A>
) => RemoteValue<ReturnType<T>>;