Commit 1e099d9b authored by Eduardo Sanz García's avatar Eduardo Sanz García Committed by Eduardo

Swap types of search options

The types for `SortBy` and `SortOrder` were swapped.
parent 940db5b4
......@@ -22,8 +22,8 @@ export class ResultSizeError extends Error {
}
/**
* @typedef {'created'|'updated'} SortOrder
* @typedef {'asc'|'desc'} SortBy
* @typedef {'created'|'updated'} SortBy
* @typedef {'asc'|'desc'} SortOrder
*/
/**
* Default callback used to get the page size for iterating through annotations.
......@@ -79,8 +79,8 @@ export class SearchClient extends TinyEmitter {
separateReplies = true,
incremental = true,
maxResults = null,
sortBy = /** @type {SortBy} */ ('created'),
sortOrder = /** @type {SortOrder} */ ('asc'),
sortBy = 'created',
sortOrder = 'asc',
} = {}
) {
super();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment