You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Typescript with v1.0rc-10, and I was trying to use .load with the isDocument parameter documented here: https://cheerio.js.org/interfaces/CheerioAPI.html. I found something weird with index.d.ts.
Hello there,
I'm using Typescript with v1.0rc-10, and I was trying to use .load with the isDocument parameter documented here: https://cheerio.js.org/interfaces/CheerioAPI.html. I found something weird with
index.d.ts
.This is my code:
I get the following type error
Expected 1-2 arguments, but got 3
. I noticed the same problem reported here but the issue was closed: #1697.I checked
index.d.ts
from the installed npm package and it looks like theisDocument
parameter is missing:I assume that it should contain
isDocument
as an optional (even thought it is not currently defined as optional in the code) like below:The source
load,ts
does contain this parameter (although not as optional), so I'm not sure why it does not appear in index.d.ts:cheerio/src/load.ts
Line 95 in 6f664b6
The text was updated successfully, but these errors were encountered: