Handle Typescript 4.5.2

This commit is contained in:
Mia 2021-11-18 19:11:21 -06:00
parent ff4b7bed31
commit 4c9ccd29ca
2 changed files with 2 additions and 4 deletions

View File

@ -84,6 +84,6 @@
"husky": "^4.3.0",
"mocha": "^8.2.0",
"smogon": "^1.4.5",
"typescript": "^4.4.2"
"typescript": "^4.5.2"
}
}

View File

@ -49,9 +49,7 @@ export const IPTools = new class {
readonly hostRegex = /^.+\..{2,}$/;
async lookup(ip: string) {
// known TypeScript bug
// https://github.com/microsoft/TypeScript/issues/33752
const [dnsbl, host] = await Promise.all<string | null, string>([
const [dnsbl, host] = await Promise.all([
IPTools.queryDnsbl(ip),
IPTools.getHost(ip),
]);