diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts index 2d360b7965..dde161e115 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) => 0 | 1 | -1; +export type SortByFn = (rowA: Row, rowB: Row, columnId: IdType) => number; export type DefaultSortTypes = 'alphanumeric' | 'datetime' | 'basic';