Module

x/json_rpc_ts/mod.ts>JSONRPCMethods

A strictly typed json-rpc(2.0) implementation, zero dependency, minimal abstraction, with simple api
Latest
interface JSONRPCMethods
import { type JSONRPCMethods } from "https://dotland.deno.dev/x/json_rpc_ts@v0.2.0/mod.ts";

Any function in method set will accept single params variable, should otherwise return/resolve JSONRPCValue, or must throw/reject JSONRPCError

If method throws a value that is not JSONRPCError, it will be treated as JSONRPCInternalError

Note that client is allowed to send no params, meaning that params can also be undefined, server may also send result undefined

Index Signatures

[method: string]: JSONRPCMethod<any, any>
import JSONRPCMethods
import { JSONRPCMethods } from "https://dotland.deno.dev/x/json_rpc_ts@v0.2.0/mod.ts";