mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Fix SortByFn<D> is needlessly restrictive (#42270)
This commit is contained in:
2
types/react-table/index.d.ts
vendored
2
types/react-table/index.d.ts
vendored
@@ -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