fix: drop stale ts-expect-error in pdf input parsing
This commit is contained in:
parent
f78c6fb785
commit
984499197d
@ -240,7 +240,6 @@ async function extractPdfContent(params: {
|
|||||||
const { buffer, limits } = params;
|
const { buffer, limits } = params;
|
||||||
const pdf = await getDocument({
|
const pdf = await getDocument({
|
||||||
data: new Uint8Array(buffer),
|
data: new Uint8Array(buffer),
|
||||||
// @ts-expect-error pdfjs-dist legacy option not in current type defs.
|
|
||||||
disableWorker: true,
|
disableWorker: true,
|
||||||
}).promise;
|
}).promise;
|
||||||
const maxPages = Math.min(pdf.numPages, limits.pdf.maxPages);
|
const maxPages = Math.min(pdf.numPages, limits.pdf.maxPages);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user