Upgrade to TypeScript 4.1

Summary:
allow-large-files

Upgrade to TypeScript 4.1

Reviewed By: nikoant

Differential Revision: D25122073

fbshipit-source-id: 7d2bc6f97595c825c9527b0c6ecab07698d5f981
This commit is contained in:
Michel Weststrate
2020-11-26 04:20:13 -08:00
committed by Facebook GitHub Bot
parent c431657a39
commit 8025c49768
17 changed files with 23 additions and 23 deletions

View File

@@ -24,7 +24,7 @@ export default class Watchman {
}
this.client = new Client();
this.client.setMaxListeners(250);
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
const onError = (err: Error) => {
this.client!.removeAllListeners('error');
reject(err);