Skip to content

Commit de94a2b

Browse files
orderBy cannot be null (string or undefined) (#44)
`orderBy` property can be string | undefined, since we need in the solution to enable the strict mode.
1 parent 0cae1be commit de94a2b

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.8.0] - 2023-06-29
11+
12+
### Changed
13+
14+
- `orderBy` property of `QueryFunction` type can be string or undefined.
15+
1016
## [2.7.2] - 2023-06-29
1117

1218
### Fixed

src/lib/DataTable/DataTableTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type QueryFunction<T, TFilter> = (
44
filter: TFilter,
55
limit?: number | undefined,
66
page?: number | undefined,
7-
orderBy?: string | null | undefined,
7+
orderBy?: string | undefined,
88
asc?: boolean | undefined,
99
) => Promise<TableQueryResult<T>>;
1010

0 commit comments

Comments
 (0)