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:
@@ -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>>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user