Given this function:

```
export async function updateSlugInEntities<T extends DataRelationshipItem>({ table, column, keyPath, idColumn = "id" }: T, entities: { [id: T["idColumn"]]: string }[]) {
  
}
```
Typescript throws the following error around [id: 

`(parameter) id: T["idColumn"]
An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead.ts(1337)`

Can you help me fix this? I want every entity in the entities array to have a key corresponding to the idColumn (or default value) of the supplied first argument