Commit cdbe452b authored by Robert Knight's avatar Robert Knight

Add missing types in sidebar/helpers/thread-annotations.js

parent bfacfb93
......@@ -19,7 +19,7 @@ import { sorters } from './thread-sorters';
* @prop {Record<string,string>} selection.filters
* @prop {string[]} selection.forcedVisible
* @prop {string[]} selection.selected
* @prop {string} selection.sortKey
* @prop {keyof sorters} selection.sortKey
* @prop {'annotation'|'note'|'orphan'} selection.selectedTab
* @prop {string|null} route
*/
......@@ -34,6 +34,7 @@ import { sorters } from './thread-sorters';
function buildRootThread(threadState) {
const selection = threadState.selection;
/** @type {BuildThreadOptions} */
const options = {
expanded: selection.expanded,
forcedVisible: selection.forcedVisible,
......
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