*add typedef
This commit is contained in:
parent
ffbbc71c48
commit
8c95ddc07b
|
@ -76,7 +76,7 @@ export default class RpcQuery {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let timer: NodeJS.Timeout;
|
let timer: number;
|
||||||
socket.on("data", (res: Buffer) => {
|
socket.on("data", (res: Buffer) => {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
socket.end();
|
socket.end();
|
||||||
|
|
Loading…
Reference in New Issue