You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed to write a wrapper around CombinePromises for nextJs `getServerSideProps', and ended up doing this;
//basically, wrapper to use combinePromises and add {props: } around the object.typeInput=Record<string|number|symbol,Promise<unknown>>;//copied from combine-promisesexportconstgetProps=<ObjextendsInput>(requests: Obj)=>({props: combinePromises(requests)});
type Input copied straight from the package, it would be nice to not copy-paste it and being able to import it directly (also, rename it to CombinedPromisesInput or something not to clash with anything)
The text was updated successfully, but these errors were encountered:
I needed to write a wrapper around CombinePromises for nextJs `getServerSideProps', and ended up doing this;
type Input
copied straight from the package, it would be nice to not copy-paste it and being able to import it directly (also, rename it to CombinedPromisesInput or something not to clash with anything)The text was updated successfully, but these errors were encountered: