Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit e6c6485

Browse files
author
Alex Luu
committed
update types
1 parent 90ec3ec commit e6c6485

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/web3-types/src/json_rpc_types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export interface JsonRpcNotification<T = JsonRpcResult> {
5757
readonly params: SubscriptionParams<T>; // for subscription results
5858
readonly result?: never;
5959
readonly data?: never;
60+
readonly error?: never;
6061
}
6162

6263
export interface JsonRpcSubscriptionResult {
@@ -91,4 +92,5 @@ export type JsonRpcBatchResponse<Result = JsonRpcResult, Error = JsonRpcResult>
9192
export type JsonRpcResponse<Result = JsonRpcResult, Error = JsonRpcResult> =
9293
| JsonRpcResponseWithError<Error>
9394
| JsonRpcResponseWithResult<Result>
94-
| JsonRpcBatchResponse<Result, Error>;
95+
| JsonRpcBatchResponse<Result, Error>
96+
| JsonRpcNotification<Result>;

0 commit comments

Comments
 (0)