export interface ObjectType { [key: string]: T; } declare function sortBy(arr: ObjectType[], key: Function): ObjectType[]; declare function sortBy(arr: ObjectType[], key: string): ObjectType[]; declare function sortBy(arr: ObjectType[], key: string[]): ObjectType[]; export default sortBy;