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 { ...@@ -22,8 +22,8 @@ export class ResultSizeError extends Error {
} }
/** /**
* @typedef {'created'|'updated'} SortOrder * @typedef {'created'|'updated'} SortBy
* @typedef {'asc'|'desc'} SortBy * @typedef {'asc'|'desc'} SortOrder
*/ */
/** /**
* Default callback used to get the page size for iterating through annotations. * Default callback used to get the page size for iterating through annotations.
...@@ -79,8 +79,8 @@ export class SearchClient extends TinyEmitter { ...@@ -79,8 +79,8 @@ export class SearchClient extends TinyEmitter {
separateReplies = true, separateReplies = true,
incremental = true, incremental = true,
maxResults = null, maxResults = null,
sortBy = /** @type {SortBy} */ ('created'), sortBy = 'created',
sortOrder = /** @type {SortOrder} */ ('asc'), sortOrder = 'asc',
} = {} } = {}
) { ) {
super(); 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