*add typecast

This commit is contained in:
Derrick Hammer 2022-08-18 19:17:32 -04:00
parent 152522e579
commit 801ae6cd4c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}