Record<string, any>` or `object` is not compatible with object like types when appears as an argument of an arrow function · Issue #42096 · microsoft/ TypeScript · GitHub
![Typescript typesafe generic function to collect array to map based on specified property key - Stack Overflow Typescript typesafe generic function to collect array to map based on specified property key - Stack Overflow](https://i.stack.imgur.com/o27Jf.png)
Typescript typesafe generic function to collect array to map based on specified property key - Stack Overflow
![javascript - TypeScript Type 'Record<string, string>' is not assignable to type 'string' - Stack Overflow javascript - TypeScript Type 'Record<string, string>' is not assignable to type 'string' - Stack Overflow](https://i.stack.imgur.com/R3P4x.png)
javascript - TypeScript Type 'Record<string, string>' is not assignable to type 'string' - Stack Overflow
![typescript - How to declare a Record type that accepts any type contained in a Union? - Stack Overflow typescript - How to declare a Record type that accepts any type contained in a Union? - Stack Overflow](https://i.stack.imgur.com/Agyno.png)