fix: drop stale ts-expect-error in pdf input parsing

This commit is contained in:
Peter Steinberger 2026-01-20 08:51:32 +00:00
parent f78c6fb785
commit 984499197d

View File

@ -240,7 +240,6 @@ async function extractPdfContent(params: {
const { buffer, limits } = params;
const pdf = await getDocument({
data: new Uint8Array(buffer),
// @ts-expect-error pdfjs-dist legacy option not in current type defs.
disableWorker: true,
}).promise;
const maxPages = Math.min(pdf.numPages, limits.pdf.maxPages);