@drpcorg/drpc-proxy
v1.4.0
Published
This package contains typings and interfaces for Drpc proxy API.
Downloads
9
Readme
Drpc proxy
This package contains typings and interfaces for Drpc proxy API.
To import types just import from drpc-proxy:
import type { JSONRPCRequest, HTTPResponse } from "drpc-proxy";
To create checkers we use ts-interface-checker
.
import suit from "drpc-proxy/protocol-ti.cjs";
import { createCheckers } from "ts-interface-checker";
let checkers = createCheckers(suite);