I have a javascript file from a dependency text-readability
that I installed that contains the following code:
const readability = new Readability()
module.exports = readability
How do I generate Typescript typings for this? The documentation is extensive but overly complicated and does not seem to address this use case.
I can't find an example anywhere how to type an already instantiated object like this.
Also it's not clear how to call this type file or where to put it in my own project.