UNPKG

xud

Version:
9 lines (8 loc) 303 B
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;