mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-03 06:04:37 +01:00
Adding more explicit typings for promises
This gets us ready for TS 4.1
This commit is contained in:
@@ -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()));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user