*add typecast
This commit is contained in:
parent
152522e579
commit
801ae6cd4c
|
@ -83,7 +83,7 @@ export default class RpcQuery {
|
|||
socket.on("data", (res: Buffer) => {
|
||||
clearTimeout(timer);
|
||||
socket.end();
|
||||
const response = unpack(res);
|
||||
const response = unpack(res as any) as RPCResponse;
|
||||
if (response && response.error) {
|
||||
return reject(response);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue