-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
refactor: drop @types/cheerio #36
Conversation
Export default cheerio instance is deprecated, ref: https://github.com/cheeriojs/cheerio/blob/v1.0.0-rc.12/src/index.ts#L64 So importing |
Tested, it fails to compile pretty much on every change. Are you not getting any errors when trying to build it? |
export type CheerioElement = cheerio.TagElement; | ||
export type WrappedCheerioElement = cheerio.Cheerio; | ||
export type CheerioElement = cheerio.Element; | ||
export type WrappedCheerioElement = cheerio.Cheerio<cheerio.Element>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't work, throws error.
@@ -75,7 +77,7 @@ interface ExtendedTagElementRelations { | |||
* Extended tag | |||
*/ | |||
export interface ExtendedTagElement | |||
extends cheerio.TagElement, | |||
extends cheerio.Element, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? And it doesn't work.
I only run build and test of @iconify/tools, I will process it right now. |
@cyberalien It's wired, why encounter these errors? |
Yes, I'm running that too, other packages don't really matter. It doesn't work for me.
This means dependencies weren't installed. Re-run |
Yes, I'm running that too, other packages don't really matter. It doesn't work for me. I'm getting errors when parsing types on every changed file. |
Strange. Do you get errors when running lint command? |
This is a very weird situation, not sure which dev environment is bugged: maybe yours, maybe mine. So currently running ci to test on separate environment. |
So ci run was a success, which means bug is in my environment. Very very weird. Doh. Sorry. |
I think you can use a online IDE to test, it works in my personal and company computer. |
Got it to work! It appears pnpm left Doing some tests now... |
Works perfectly |
Thanks a lot and sorry for mess. Merged. I've also removed duplicate entries, so types are now in one file. |
Published with For now it won't be added to stable because:
So this is a possibly breaking change and I will likely add another breaking change soon, so I'd rather have one new major version with all those changes instead of publishing temporary version. |
Sure, @types/cheerio's types declare in global namespace 😂 |
#35