2026-09-10 15:40:10 +08:00
|
|
|
export interface ObjectType<T> {
|
|
|
|
|
[key: string]: T[];
|
|
|
|
|
}
|
|
|
|
|
declare function groupBy<T>(data: T[], condition: (item: T) => string): ObjectType<T>;
|
|
|
|
|
declare function groupBy<T>(data: T[], condition: string): ObjectType<T>;
|
|
|
|
|
export default groupBy;
|