1/* To get this running on Linux, I needed the latest typescript version: */
2
3npm install -g typescript@latest
4
5/* Then in your tsconfig you currently need the ES2020.Promise lib. */
6
7{
8 "compilerOptions": {
9 "lib": [
10 "ES2020.Promise",
11 ]
12 },
13}
14
15/* Usage: */ const results = await Promise.allSettled(BatchOfPromises);