*add typedef

This commit is contained in:
Derrick Hammer 2022-07-27 18:49:11 -04:00
parent ffbbc71c48
commit 8c95ddc07b
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ export default class RpcQuery {
return;
}
return new Promise((resolve, reject) => {
let timer: NodeJS.Timeout;
let timer: number;
socket.on("data", (res: Buffer) => {
clearTimeout(timer);
socket.end();