UNPKG

json-rpc-protocol

Version:

JSON-RPC 2 protocol messages parsing and formatting

7 lines (6 loc) 536 B
import { JsonRpcId, JsonRpcParamsSchema, JsonRpcParamsSchemaByName, JsonRpcParamsSchemaByPositional } from './json-rpc.type'; export { JsonRpcParamsSchemaByName, JsonRpcParamsSchemaByPositional }; export declare const error: (id: null | JsonRpcId, err: any) => string; export declare const notification: (method: string, params?: JsonRpcParamsSchema) => string; export declare const request: (id: JsonRpcId, method: string, params?: JsonRpcParamsSchema) => string; export declare const response: (id: JsonRpcId, result: any) => string;