dictadata / pdf-data-parser

Parse, search and stream PDF tabular data using Node.js with Mozilla's PDF.js library.
MIT License
2 stars 0 forks source link

Typescript support #3

Open David0544 opened 1 month ago

David0544 commented 1 month ago

Hi,

I'm trying to use this package in my TS project, and it faild due to missing types. It will be great if this package will support TS. Thanks.

drewletcher commented 1 month ago

I just released version 1.2.15 with Typescript support for modules in the project. I created a simple Typescript project and was able to import and use it.

If you want types for data parsed from PDF documents then that would have to part of your application. I could add a module to generate types, but I'd have to think about the use cases. I have another project where I generate type definitions from a data stream, but it's in my own data definition format.