-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(provider): rename to ClientInterface
- Loading branch information
1 parent
e57d1c1
commit 82ceece
Showing
5 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
interface Arguments { | ||
readonly method: string; | ||
readonly params?: readonly unknown[] | object; | ||
} | ||
|
||
export type RequestArguments = Arguments; | ||
|
||
export type NotificationArguments = Arguments; | ||
|
||
export type JSONRPCMessage = RequestArguments | NotificationArguments; | ||
|
||
export interface IClient { | ||
request(args: RequestArguments): Promise<unknown>; | ||
notify(args: NotificationArguments): Promise<unknown>; | ||
} | ||
|
||
export interface JSONRpcError extends Error { | ||
message: string; | ||
code: number; | ||
data?: unknown; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters