fix: correct code after adding linting config

This commit is contained in:
Riccardo
2024-05-16 13:49:23 +02:00
parent a9d8923518
commit e0e5aa7801
6 changed files with 62 additions and 35 deletions

View File

@@ -2,7 +2,7 @@ import PdfParse from 'pdf-parse';
export async function parser(file: File) {
const chunks = [];
for await (const chunk of file.stream() as any) {
for await (const chunk of file.stream() as unknown as AsyncIterable<Buffer>) {
chunks.push(chunk);
}