Closed ghost closed 4 years ago
@lillem4n
This is golden, thank you so much!
Could you write an example of how to import and use the library using typescript? I tried with
import * as cloudscraper from "cloudscraper";
let html_doc = await cloudscraper(options);
but Visual Studio code shows me an error: This expression is not callable. Type 'CloudscraperAPI' has no call signatures
import cloudscraper from 'cloudscraper';
should be enough. We're using it like this with TS 3.7.2.
Closes #265