import { isJSONRPCRequest } from "https://dotland.deno.dev/x/json_rpc_ts@v0.2.0/mod.ts";
WARN: this check if x
is JSONRPCNotification
or JSONRPCRequest
To check if x
is JSONRPCRequest
, ONLY need to check 'id' in x
x/json_rpc_ts/mod.ts>isJSONRPCRequest
import { isJSONRPCRequest } from "https://dotland.deno.dev/x/json_rpc_ts@v0.2.0/mod.ts";
WARN: this check if x
is JSONRPCNotification
or JSONRPCRequest
To check if x
is JSONRPCRequest
, ONLY need to check 'id' in x