*add typedef
This commit is contained in:
parent
ffbbc71c48
commit
8c95ddc07b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue