mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-23 02:57:48 -05:00
Handle Typescript 4.5.2
This commit is contained in:
parent
ff4b7bed31
commit
4c9ccd29ca
|
|
@ -84,6 +84,6 @@
|
|||
"husky": "^4.3.0",
|
||||
"mocha": "^8.2.0",
|
||||
"smogon": "^1.4.5",
|
||||
"typescript": "^4.4.2"
|
||||
"typescript": "^4.5.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user