Unfortunately I had to change the return type of the affected functions and make the result entry optional. It is only undefined if the parameter skipDryRunning is true, otherwise it will always be defined – as before.
It is possible to define this relationship in TypeScript but I think that the types will be ugly. Therefore I keep it as it is. This would now require the caller to explicitly check whether the result entry is undefined or not (or just assure it using the ! operator).
Closes #11
Unfortunately I had to change the return type of the affected functions and make the
result
entry optional. It is onlyundefined
if the parameterskipDryRunning
istrue
, otherwise it will always be defined – as before.It is possible to define this relationship in TypeScript but I think that the types will be ugly. Therefore I keep it as it is. This would now require the caller to explicitly check whether the
result
entry isundefined
or not (or just assure it using the!
operator).