Adding more explicit typings for promises

This gets us ready for TS 4.1
This commit is contained in:
Matt Bierner
2020-09-09 09:20:25 -07:00
parent 2a954244f0
commit c348165cc0
34 changed files with 55 additions and 55 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ export async function main(argv: string[]): Promise<any> {
child.stdout!.on('data', (data: Buffer) => console.log(data.toString('utf8').trim()));
child.stderr!.on('data', (data: Buffer) => console.log(data.toString('utf8').trim()));
await new Promise(c => child.once('exit', () => c()));
await new Promise<void>(c => child.once('exit', () => c()));
});
}