UNPKG

typed-utilities

Version:
2 lines (1 loc) 149 B
export declare const sortByProperty: <Key extends string>(...keys: Key[]) => <T extends { [K in Key]?: string | undefined; }>(a: T, b: T) => number;