mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-15 05:30:24 +00:00
Fix SortByFn<D> is needlessly restrictive (#42270)
This commit is contained in:
Vendored
+1
-1
@@ -733,7 +733,7 @@ export interface UseSortByColumnProps<D extends object> {
|
||||
isSortedDesc: boolean | undefined;
|
||||
}
|
||||
|
||||
export type SortByFn<D extends object> = (rowA: Row<D>, rowB: Row<D>, columnId: IdType<D>) => 0 | 1 | -1;
|
||||
export type SortByFn<D extends object> = (rowA: Row<D>, rowB: Row<D>, columnId: IdType<D>) => number;
|
||||
|
||||
export type DefaultSortTypes = 'alphanumeric' | 'datetime' | 'basic';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user