hunk.code_window:  * ```
    */
   export const queueScheduler = new QueueScheduler(QueueAction);
   /**
    * @deprecated Renamed to {@link queueScheduler}. Will be removed in v8.
    */
   export const queue = queueScheduler;
hunk.labels: keep keep keep keep replace replace replace replace replace
hunk.file_path: src/internal/scheduler/queue.ts
hunk.type: replace
file: import { ApiListNode, FlattenedApiList } from './interfaces';
  import { isStable } from './helpers';
  
  /**
   * Flattens API List from the docs generation into a map with relevant properties.
   * Makes navigation easier.
   *
   * @export
   * @param {ApiListNode[]} [apiList=[]]
   * @requires isStable
   * @returns {FlattenedApiList}
   * @todo create better type lenses - inference is not working well here
   */
  export function flattenApiList(apiList: ApiListNode[]): FlattenedApiList {
    return apiList.reduce((acc, curr): FlattenedApiList => {
      return {
        ...acc,
        ...curr.items.reduce((acc, curr): FlattenedApiList => {
          if (isStable(curr.stability)) {
            return {
              ...acc,
              [curr.title]: {
                path: curr.path,
                docType: curr.docType,
              }
            };
          }
  
          return {
            ...acc,
          };
        }, {} as FlattenedApiList),
      };
    }, {} as FlattenedApiList);
  }
  