Repository navigation
Feature/ts data types - #12941
Feature/ts data types#12941carlosingles wants to merge 6 commits into
Conversation
Codecov Report
@@ Coverage Diff @@
## v6-beta #12941 +/- ##
==========================================
Coverage ? 96.24%
==========================================
Files ? 95
Lines ? 9267
Branches ? 176
==========================================
Hits ? 8919
Misses ? 323
Partials ? 25 Continue to review full report at Codecov.
|
|
Hey there :) First of all: Thanks a bunch for your contribution to Sequelize! Much appreciated! A couple of months ago, we have switched from master to main branch as our primary development branch and hence this PR is now outdated :( If you still think this change is making sense, please consider recreating the PR against ✌️ |
|
No problems, is sequelize still planning on migrating to typescript? My PR has to do with the typescript migration that was suggested a while ago. If this is not the case and the typescript migration has been cancelled, then I can close this PR as the current main branch has no indication that it is, or will be using typescript. |
|
@carlosingles sorry for the late response, but we are currently working on the migration to TypeScript as a next release of v6. So feel free to continue working on this but make sure that all changes are backwards compatible. |
7806bc7 to
90a30ea
Compare
a398462 to
914a7b3
Compare
Pull Request check-list
Please make sure to review and check all of these items:
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
Hello 👋
I thought I would try to help with the typescript migration that is being performed for v7. I hope this will prove useful, I only did one file since I was unsure if my changes would be accepted or not. Please let me know if this work is something that you would like to see more of and I will continue to try and help with the migration.
I have a few questions regarding my PR. I currently do not have a full understanding of the
data-typescolumn definitions, so I did some guess work and in places where I was unsure I usedunknowninstead ofany.parsemethod being used, would anyone have any ideas on what this function is used for?_sanitizefunction seems to take the primitive value and attempt to make it adhere to the column data type. However, in cases where it does not pass, it returns the raw value instead. Is it okay for this function to remain typed asunknownand in cases where we need to use it, we can define the correct types? (see line 439'sBOOLEAN.prototype._sanitizemethod)Please do not hesitate to reach out to me, I am happy to hear any feedback that you may have :)