How to create a typescript with multiple keys, some of which are expressed as computed key with a generic value;
E.g.
{
groupName: 'Group 1',
participant1Id: {firstName: string, lastName: string, ...}
participant2Id: {firstName: string, lastName: string, ...}
...
}
cannot be expressed as
type Group<T> = {
groupName: string;
[key: string]: T;
};
due to **Property 'groupName' of type 'string' is not assignable to 'string' index type 'T'**