Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/codemirror. A minor test of Codemirror okikio-codemirror.netlify.app
Something went wrong. Try again.
123456789101112131415161718192021// Based off of https://www.npmjs.com/package/@open-rpc/client-jsimport { type IJSONRPCNotification } from "./Request";
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>; close(): void; onNotification(callback: (data: IJSONRPCNotification) => void): void;}