-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: export Root from the types #1649
Comments
Can you provide some code. I believe you wanted use const $ = cheerio.load(rootElement) but you didn't know how to get that |
Hi,
Root would be exported in types/index.d.ts. Now only CheerioAPI is exported. |
For now, there is a solution in #1540. I agree that having this interface would be useful and we might add this in the future. |
Hi,
It would be great if the type Root would be accessible outside. Eg. when I pass around the result of the load method I'd need to use the Root type, the default export is not good in this case.
The text was updated successfully, but these errors were encountered: