Skip to content

Commit

Permalink
chore: removed local update to JSONRPCResponseResult
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanjassal committed Dec 2, 2024
1 parent bece592 commit 84226e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 1 addition & 13 deletions src/client/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type {
ClientManifest,
JSONObject,
JSONRPCResponseMetadata,
// JSONRPCResponseResult,
JSONRPCResponseResult,
RPCClient,
} from '@matrixai/rpc';
import type {
Expand All @@ -26,17 +25,6 @@ import type {
} from '../nodes/types';
import type { AuditEventsGetTypeOverride } from './callers/auditEventsGet';

// TEMP: For testing and debugging. This will go into js-rpc or something.
type JSONRPCResponseResult<
T extends JSONObject = JSONObject,
M extends JSONObject = JSONObject,
> = T & {
metadata?: JSONRPCResponseMetadata &
M &
(T extends { metadata: infer U } ? U : JSONObject) &
JSONObject;
};

type ClientRPCRequestParams<T extends JSONObject = JSONObject> =
JSONRPCResponseResult<
T,
Expand Down

0 comments on commit 84226e8

Please sign in to comment.