combine-promises
combine-promises copied to clipboard
Like Promise.all(array) but with an object instead of an array.
This module can't be used in ESM because it only exports a `default` property but default-import in Node would import the entire `module.exports`. I see several solutions here: 1. As...
I needed to write a wrapper around CombinePromises for nextJs `getServerSideProps', and ended up doing this; ```ts //basically, wrapper to use combinePromises and add {props: } around the object. type...
Promise.all accept non promise in its array, whereas combinePromises need a Promise in order to not complain. An easy workaround is to put Promise.resolve but it would be even better...