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
feat(types): transition lib/errors #13710
feat(types): transition lib/errors #13710
Conversation
284b87b
to
2a1c9f6
Compare
A few things I've noticed while migrating to typescript here. Most types are inconsistent with the JS code. Changes that were done here won't be breaking changes for JS users, but might be breaking changes for TS users. |
2a1c9f6
to
d3a3214
Compare
…:Keimeno/sequelize into feature/typescript-conversion-lib-errors
Some minor things really. Over all good stuff :) |
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.
Looks mostly fine, just some nits.
Can you remove the types from the comments? We should infer from TS types.
Also personal preference: can you explicitly specify public
, protected
, private
, etc? IMO its better to do so since it forces you to think "should this be public?" (no strong opinions on this though)
I think the types in the comments are for the docs right? I was wondering the same however? Regarding visibility: Let's have a poll on that :) |
Seems we are leaning towards omitting public modifier and only go with private and protected. |
…:Keimeno/sequelize into feature/typescript-conversion-lib-errors
🎉 This PR is included in version 6.12.0-beta.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 6.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* feat(types): transition lib/errors * feat(types): importing model type from existing types * feat(types): don't export AsyncQueueError from lib/errors * feat(types): storing key not value of enum in class * feat(types): migrate async-queue to typescript * fix(tests): adjust tests for typescript migration * feat(types): using inline export for named exports * feat(types): rework type definitions * feat(types): export AsyncQueueError from errors/index Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
Pull Request Checklist
Please make sure to review and check all of these items:
npm run test
ornpm run test-DIALECT
pass with this change (including linting)?Description Of Change
Transitions the
lib/errors
folder to TypeScript