As I was in the midst of posing this question, a solution suddenly dawned on me. I decided to quickly share it here in case someone else may find it useful.
I encountered an object p
that is of type
Partial<Record<Index,Promise<Value>>>
. This allows me to reference the entries using a fixed set of keys. However, since the keys are dynamically generated and I need to repeat this process for multiple objects, manually typing out all the types is not feasible. My goal is to await the promise in order to transform my return type into Promise<Partial<Record<Index,Value>>>
.