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
15 changes: 14 additions & 1 deletion src/modules/comments/fetchManyComments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ export interface FetchManyCommentsProps extends SpaceReputationContextParams {
parentId?: string;
page?: number;
limit?: number;
sortBy?: "new" | "old" | "top" | "controversial";
sortBy?:
| "createdAt"
| "top"
| "controversial"
/** @deprecated Use "createdAt" instead. "new" is a directional alias for
* createdAt DESC, removed in v8; the server still accepts it (identical
* behavior) but responds with deprecation headers. */
| "new"
/** @deprecated Use "createdAt" with sortDir:"asc" instead. "old" is a
* directional alias for createdAt ASC, removed in v8; the server still
* accepts it (identical behavior) but responds with deprecation headers. */
| "old";
/** Sort direction for `sortBy: "createdAt"`. Defaults to "desc". */
sortDir?: "asc" | "desc";
include?: string;
sourceId?: string;
}
Expand Down
Loading