Ok so I'm calling a 3rd party API and get some weirdly shaped data like this
{
"fixedKey1": MyRecord,
"fixedKey2": MyRecord
}
where
type MyRecord = Record<string, SomeMetadata> | []`
and I'm looking for a way to merge both fixedKey1 and fixedKey2 into an object of type Record<string, SomeMetadata>, or even just an array of objects consisting of some values contained in SomeMetadata. Any ideas?