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