diff --git a/package.json b/package.json index 6d282b624..d91376283 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "@matrixai/mdns": "^1.2.6", "@matrixai/quic": "^1.2.10", "@matrixai/resources": "^1.1.5", - "@matrixai/rpc": "^0.6.0", + "@matrixai/rpc": "^0.6.1", "@matrixai/timer": "^1.1.3", "@matrixai/workers": "^1.3.7", "@matrixai/ws": "^1.1.7", diff --git a/src/client/types.ts b/src/client/types.ts index 73d6ae271..6748bf1a8 100644 --- a/src/client/types.ts +++ b/src/client/types.ts @@ -33,7 +33,8 @@ type JSONRPCResponseResult< > = T & { metadata?: JSONRPCResponseMetadata & M & - (T extends { metadata: infer U } ? U : JSONObject); + (T extends { metadata: infer U } ? U : JSONObject) & + JSONObject; }; type ClientRPCRequestParams =