I am attempting to incorporate a Javascript library into my Typescript project. Within the JS library, there is a class called pdfjs-dist with a constructor that is used in this manner:
findController = new _pdf_find_controller.PDFFindController({
linkService: pdfLinkService,
eventBus: eventBus
});
The issue I am facing is how do I define PDFFindController in the .d.ts file so that I can utilize this constructor? I've attempted an approach like this:
class PDFFindController {
constructor(linkService: LinkService, eventBus: EventBus) {}
However, I continue to encounter the problem of PDFFindController
being undefined, thus preventing me from using the constructor.