When working with TypeScript, I encountered an issue while trying to assign the results of Promise.all()
. It seems that Promise.all()
changes the return type to number | <actual type>
. Even when attempting to handle this inside a then()
statement... Is there a solution for this?