import { List } from '../types' ; export type GroupBy = { < Keys extends string , Value > ( f , list ) : Readonly < Record < Keys , Value > > ; < Keys extends string , Value > ( f ) : ( list : List < Value > ) => Readonly < Record < Keys , Value > > ; } ;