Relative Content

Tag Archive for cheerio

Generic type ‘Cheerio’ requires 1 type argument(s)

I’m trying to create a function that takes an string (html) and returns a cheerio object that the consuming code can then use cheerio methods on like .find() etc. I cant work out how to correctly type the return so typescript is happy.