Skip to content
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

Copied webpack 5 types into plugins.temp.types.ts #70

Merged
merged 1 commit into from Mar 15, 2021

Conversation

Brian-McBride
Copy link
Contributor

This typing pass makes pretty much all the typings in the code run as expected.
To do this, I copied over the webpack types and shoved them in a temp typings file for use.

Not the greatest, but it is way more typesafe.

It also seemed that the types were wrong in a couple of places. The code worked fine, so looking into it there were callbacks with an Object instead of the typed String.

Assigned them as it should be from webpack.
Kept legacy code in place (should depreciate)
@@ -603,11 +603,16 @@
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4=

"@types/node@*", "@types/node@^14.14.33":
"@types/node@*":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"@types/node@*" and "@types/node@^14.14.34" could probably be joined? Yarn seems to do strange things with * deps sometimes. If you delete both these and re-run yarn I think it will join them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm. I ran yarm remove @types/node ; yarn install --deps @types/yarn
Honestly, I avoid Yarn these days, so I might be missing something.

Everyone still uses the Yarn 1x and it's just not developed. Yarn 2 seems like a hot mess still. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants