-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
The TypeScript typings have errors and make this library unusable from TypeScript #96
Comments
/cc'ing @andrewneo |
For what it's worth, installing |
Seems like it should be a peer dependency. |
But isn't that kinda weird, because then non-TS users will get "missing peer dependency" warnings |
Non-TS users can still benefit from TS typings; for example, VS Code TS type intelligence also works in JS files. |
Hmm, good point 🤔 . Wouldn't that make a normal dependency a better fit then? |
I merged #101. I'm wondering if this is still an issue. Can you check? |
@IonicaBizau If I remember correctly, #101 was not meant to fix this issue. It arose from another change that just contained faulty TS. |
I had to put |
Is this still a thing? I am not expert in TS, but I merged some related PRs. |
Duplicate of #121 Moving the discussion there. |
The TypeScript typings have errors that prevent code depending on this library from compiling in TypeScript; namely, the
CheerioSelector
andCheerioStatic
types are missing definitions.I'm not sure what the proper fix is; I made a fork that adds
/// <reference path="../../../@types/cheerio/index.d.ts" />
tolib/index.d.ts
so that the library would compile, but it seems like a 'hacky' workaround.The text was updated successfully, but these errors were encountered: