Closed
Description
Version
1.0.0-beta.29
Reproduction link
https://codesandbox.io/s/4xvk5l7mo9
Steps to reproduce
index.d.ts declares render()
as returning string
while the documentation states that it is indeed "CheerioWrapper" (Cheerio
) - the latter is also what can be observed when inspecting the result.
(f3dfb1e, for #571, may have been an impediment for this in the past but is long fixed.)
What is expected?
render()
type definition declares Cheerio
return value.
What is actually happening?
render()
type definition declares string
return value.
We created a hack around this using @types/cheerio.