How can I type the reduce function parameters.
interface IGroupArrayByKey { data: T[] key: string } export const groupArrayByKey =