canvasMaxAreaInBytes in DocumentInitParameters has type Boolean, preventing TypeScript users from passing the correct (numeric) value.
typeof __non_webpack_require__ === "function"
      ) {
        
        
        
        
        
        
        
        
        
        
        
        
        
        const worker = eval("require")(this.workerSrc);
        return worker.WorkerMessageHandler;
      }
      await loadScript(this.workerSrc);
      return window.pdfjsWorker.WorkerMessageHandler;
    };
    return shadow(this, "_setupFakeWorkerGlobal", loader());
  }
}
/**
 * For internal use only.
 * @ignore
 */
class WorkerTransport {