diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts index a91388022b..9b747fddd7 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -733,7 +733,7 @@ export interface UseSortByColumnProps { isSortedDesc: boolean | undefined; } -export type SortByFn = (rowA: Row, rowB: Row, columnId: IdType) => number; +export type SortByFn = (rowA: Row, rowB: Row, columnId: IdType, desc?: boolean) => number; export type DefaultSortTypes = 'alphanumeric' | 'datetime' | 'basic';