export default function groupBy(list: T[], iteratee: (t: T) => K): { [key in K]: T[]; };