(
pdfs: StatementPdf[],
debug = false,
)
| 36 | >; |
| 37 | |
| 38 | export async function parsePdfs( |
| 39 | pdfs: StatementPdf[], |
| 40 | debug = false, |
| 41 | ): Promise<Readonly<Readonly<ParsedPdf>[]>> { |
| 42 | const parsedPdfs: Readonly<Readonly<ParsedPdf>[]> = await Promise.all( |
| 43 | pdfs.map(async (pdf) => { |
| 44 | return { |
| 45 | ...pdf, |
| 46 | data: await parsers[pdf.type].parsePdf({ |
| 47 | debug, |
| 48 | ...pdf.parserInput, |
| 49 | }), |
| 50 | }; |
| 51 | }), |
| 52 | ); |
| 53 | |
| 54 | return parsedPdfs; |
| 55 | } |
no outgoing calls
no test coverage detected