Oops. Done. I had to add this though:
return Promise.resolve(resultCode);

otherwise TypeScript complains with:
error TS2198: Could not find the best common type of types of all return statement expressions.

(due to the earlier return of Util.reject)