The prebuilt files include `web/pdf_viewer.js` with some viewer APIs. Those are missing from type declarations.
url: false,
      zlib: false,
    },
    format: "amd", 
    repository: {
      type: "git",
      url: DIST_REPO_URL,
    },
  };
  const bowerManifest = {
    name: DIST_NAME,
    version: VERSION,
    main: ["build/pdf.js", "build/pdf.worker.js"],
    ignore: [],
    keywords: DIST_KEYWORDS,
  };
  return [
    createStringSource("package.json", JSON.stringify(npmManifest, null, 2)),
    createStringSource("bower.json", JSON.stringify(bowerManifest, null, 2)),
  ];
}
gulp.task(
  "dist-pre",
  gulp.series(
    "generic",
    "generic-legacy",
    "components",
    "components-legacy",
    "image_decoders",
    "image_decoders-legacy",