iwhen, Immediate Promises for TypeScript based on when.js