typescript get promise allsettled

Solutions on MaxInterview for typescript get promise allsettled by the best coders in the world

showing results for - "typescript get promise allsettled"
Malia
22 Jul 2020
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);