by greener_grass · 1y ago · 0 comments
let! a = fetchA() and! b = fetchB()
Whereas `Promise.all` usually requires all promises to have the same type (returning a `List<T>` or even a `List<obj>`)
.See https://learn.microsoft.com/en-us/dotnet/fsharp/whats-new/fs...
const [a, b] = await Promise.all([fetchA(), fetchB()]); // => a: A, b: BThat TypeScript supports this is yet more complexity introduced to cover usages of an API not designed around types.