UNPKG

@ch1/rpc

Version:

JavaScript Remote Procedure Call (RPC)

8 lines (7 loc) 366 B
/** * Functions for working with different types of errors */ import { CodedError, RPCConfig, RPCError } from './interfaces'; export declare function createRPCError(c: RPCConfig, error: CodedError): RPCError; export declare function prefixStackWith(a: any, b: any): void; export declare function createErrorFromRPCError(c: RPCConfig, error: RPCError): CodedError;