Allow exitCode to be null and initialize it to null as well

This commit is contained in:
Jannis Pohlmann 2019-04-30 18:01:14 +02:00
parent 1a0c9af4a6
commit d13a85bd76
2 changed files with 2 additions and 2 deletions

2
index.d.ts vendored
View file

@ -63,7 +63,7 @@ interface IDockerComposePushOptions extends IDockerComposeOptions {
} }
interface IDockerComposeResult { interface IDockerComposeResult {
exitCode: number; exitCode: ?number;
out: string; out: string;
err: string; err: string;
} }

View file

@ -67,7 +67,7 @@ const execCompose = (command, args, options) => new Promise((resolve, reject) =>
}); });
const result = { const result = {
exitCode: 0, exitCode: null,
err: '', err: '',
out: '' out: ''
}; };