PDF.js version: 3.5.141

These two properties should be marked as not mandatory as they are initialized if not present
return this._pages.length;
  }
  getPageView(index) {
    return this._pages[index];
  }
  /**
   * @type {boolean} - True if all {PDFPageView} objects are initialized.
   */
  get pageViewsReady() {
    if (!this._pagesCapability.settled) {
      return false;
    }
    
    
    return this._pages.every(function (pageView) {
      return pageView?.pdfPage;
    });
  }
  /**
   * @type {boolean}
   */
  get renderForms() {
    return this.#annotationMode === AnnotationMode.ENABLE_FORMS;
  }
  /**
   * @type {boolean}
   */
  get enableScripting() {