I try to use a Javascript library in my Typescript project. In JS library, I have a class (pdfjs-dist) which has a constructor used like this:
findController = new _pdf_find_controller.PDFFindController({
linkService: pdfLinkService,
eventBus: eventBus
});
The problem I have is to how to define PDFFindController in .d.ts file, so I can use that constructor? I have tried approach like that:
class PDFFindController {
constructor(linkService: LinkService, eventBus: EventBus) {}
But so far, I still end up with PDFFindController being undefined, so I cannot use the constructor.