website-scraper / website-scraper-puppeteer

Plugin for website-scraper which returns html for dynamic websites using puppeteer
MIT License
324 stars 80 forks source link

How to implement in Typescript? #82

Closed AbhishekJadhav2002 closed 11 months ago

aivus commented 1 year ago

Hello @AbhishekJadhav2002

Do want to create a TS definitions to the module? If yes, you can follow https://github.com/DefinitelyTyped/DefinitelyTyped

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

AbhishekJadhav2002 commented 11 months ago

Hello @AbhishekJadhav2002

Do want to create a TS definitions to the module? If yes, you can follow https://github.com/DefinitelyTyped/DefinitelyTyped

Not really right now. I was just looking for the typescript support, if there's any.

s0ph1e commented 10 months ago

Hi @AbhishekJadhav2002

Despite having no types for this module, I believe it should work fine with typescript after you configure TS to work with ESM. I didn't try it by myself, but I think this guide may be a good starting point. Hope it helps.