xud
Version:
Exchange Union Daemon
9 lines (8 loc) • 303 B
TypeScript
import grpc from 'grpc';
/**
* Convert an internal xud error type into a gRPC error.
* @param err an error object that should have code and message properties
* @return a gRPC error with a gRPC status code
*/
declare const getGrpcError: (err: any) => grpc.ServiceError;
export default getGrpcError;