Resolves all promises in the PromiseMap using Promise.all.
Generic type for the promiseAllMap function
Mapping of promises
Resolves all promises in the PromiseMap using Promise.all.