Here is what I want to do:
Promise.all([aurelia.start(), entityManagerProvider.initialize()])
.then((results:Array) => {
let aureli
At least from TypeScript 2.7.1 onwards, the compiler seems to resolve the types without help, with a syntax like this:
Promise.all([fooPromise, barPromise]).then(([foo, bar]) => {
// compiler correctly warns if someField not found from foo's type
console.log(foo.someField);
});
Hat tip: @JamieBirch (from comment to @AndrewKirkegaard's answer)