chore: update to latest TypeScript, which has built-in WeakRef declarations (#27425)

This commit is contained in:
Milan Burda 2021-01-22 20:25:47 +01:00 committed by GitHub
parent fcdb7ad21a
commit 70190ec2b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 70 additions and 128 deletions

View file

@ -31,7 +31,7 @@ describe('session.serviceWorkers', () => {
}
res.end(fs.readFileSync(path.resolve(__dirname, 'fixtures', 'api', 'service-workers', file)));
});
await new Promise(resolve => {
await new Promise<void>(resolve => {
server.listen(0, '127.0.0.1', () => {
baseUrl = `http://localhost:${(server.address() as AddressInfo).port}/${uuid}`;
resolve();