Skip to content

Commit ef92c0d

Browse files
fix(2.0): adjust frontend typings
1 parent e0ff4a3 commit ef92c0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/src/forum/extenders/addFrontSort.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { extend } from 'flarum/common/extend';
22
import DiscussionListState from 'flarum/forum/states/DiscussionListState';
33

44
import type { PaginatedListParams } from 'flarum/common/states/PaginatedListState';
5+
import type { SortMap } from 'flarum/common/states/PaginatedListState';
56

67
export default function () {
78
extend(DiscussionListState.prototype, 'requestParams', function (this: DiscussionListState, params: PaginatedListParams) {
@@ -14,7 +15,7 @@ export default function () {
1415
}
1516
});
1617

17-
extend(DiscussionListState.prototype, 'sortMap', function (map: Record<string, string>) {
18+
extend(DiscussionListState.prototype, 'sortMap', function (map: SortMap) {
1819
map.front = '-frontdate';
1920
});
2021
}

0 commit comments

Comments
 (0)