I have a type of an array of object in Typescript. Let's say:
type Arr = [{ toto: string}, {titi: number}];
I don't know the length in advance. I would like to have the type of the merge of all objects in the array, ie the intersection
{
toto: string,
titi: number
}
Thanks!