Closed zhzLuke96 closed 8 months ago
The TS definition file is not included in the NPM package at the moment.
I think that this change should be made in package.json
"files": [ "/lib", "/test", "/types" ],
I would do it, but I don't know how to use Github properly
The TS definition file is not included in the NPM package at the moment.
I think that this change should be made in package.json
"files": [ "/lib", "/test", "/types" ],
Oops, this my bad... This change requires the package owner to repackage and republish, but before that, a new PR is needed to modify the package.json. If @inimeseke you'd like to fix it, you can: fork it => fix it => submit a PR. Thank you.
Problem
Add TypeScript type definitions for the pdf2md library to improve integration with TypeScript projects.
Solution
Wrote a types/pdf2md.d.ts type definition file with declarations for the pdf2md interface.
Features:
types/pdf2md.d.ts
type definition file declaring the externally exposed interfaces of pdf2mdImprovements:
pdf2md()
intypes/pdf2md.d.ts
to document details of the interfaces