Problem Statement
According to our JS interface type definitions, the execute promise, as well as all abstractions (e.g. releases.uploadSourceMaps) building on top of it always have to return a Promise<string>.
However, in reality, if you execute a command with live: true (the second execute param), we resolve with void/undefined, thereby violating our type definitions.
Solution Brainstorm
To avoid behaviour breaking changes, we can leave this as-is for now but we should fix it in v3 of the CLI. We have two options:
- always resolve with a string (I'd prefer this slightly)
- change type definitions to allow for
Promise<string | undefined>
Problem Statement
According to our JS interface type definitions, the
executepromise, as well as all abstractions (e.g.releases.uploadSourceMaps) building on top of it always have to return aPromise<string>.However, in reality, if you execute a command with
live: true(the secondexecuteparam), we resolve with void/undefined, thereby violating our type definitions.Solution Brainstorm
To avoid behaviour breaking changes, we can leave this as-is for now but we should fix it in v3 of the CLI. We have two options:
Promise<string | undefined>