by ajifurai · 1y ago · 0 comments
const [a, b] = await Promise.all([fetchA(), fetchB()]); // => a: A, b: B
That TypeScript supports this is yet more complexity introduced to cover usages of an API not designed around types.