UNPKG

picorpc

Version:

A tiny RPC library and spec, inspired by JSON-RPC 2.0 and tRPC.

10 lines (9 loc) 298 B
import type { IResponse, IResponseHandler } from '../types'; declare class Response { protected handler: IResponseHandler; protected response: IResponse; constructor(handler: IResponseHandler, response: IResponse); exec(): void; valueOf(): IResponse; } export default Response;