silence some new ts squigglies in the editor (#3435)

This commit is contained in:
Fredrik Adelöw
2020-11-25 09:57:16 +01:00
committed by GitHub
parent 8fd5e64351
commit fae3fafcfa
10 changed files with 18 additions and 17 deletions
@@ -63,7 +63,7 @@ export async function runDockerContainer({
);
}
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
dockerClient.pull(imageName, {}, (err, stream) => {
if (err) return reject(err);
stream.pipe(logStream, { end: false });
@@ -119,7 +119,7 @@ export const runCommand = async ({
options,
logStream = new PassThrough(),
}: RunCommandOptions) => {
await new Promise((resolve, reject) => {
await new Promise<void>((resolve, reject) => {
const process = spawn(command, args, options);
process.stdout.on('data', stream => {