Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/modules/entities/fetchManyEntities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ export interface FetchManyEntitiesProps extends SpaceReputationContextParams {

// Sorting & Pagination
// `metadata.<prop>` is also accepted by the server for metadata-based sorting.
sortBy?: "new" | "hot" | "top" | "controversial" | (string & {});
sortBy?:
| "createdAt"
| "hot"
| "top"
| "controversial"
/** @deprecated Use "createdAt" instead. "new" is a directional alias removed
* in v8; the server still accepts it (identical behavior) but responds with
* deprecation headers. */
| "new"
| (string & {});
sortDir?: "asc" | "desc";
sortType?: "auto" | "numeric" | "text" | "boolean" | "timestamp";
sortByReaction?:
Expand Down
Loading