You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If new issues are identified, they will be added here
🔬 About TypeScript Tests
The tests are based on TypeScript compilation and not executes the compiled code.
Reason: Given that the main codebase and its entire maintenance are carried out in JavaScript, creating tests in TypeScript could potentially hinder development in its primary language. It allows the development of the main driver and its types in parallel.
See: #1957 and #1995 (comment).
ℹ️ About refactoring
The PR#2067 solves all the following refactoring, but it has become too long and hard to review. Then, I plan to split it into smaller tasks and submit them again.
The idea behind the refactoring revolves around:
Organizing and patterning the code for better readability and maintenance
Improving the performance of the code editor when compiling the types in its display
Increasing compatibility across multiple TypeScript configurations (tsconfig)
1) Small refactoring
Include all *.ts files into tsconfig.json (except for tests)
Known Issues
Pool
mysql
import, likecreatePool('uri')
maxIdle
option descriptionPool Cluster
poolCluster.add('conn', 'uri')
url
inadd
methodend
,of
andadd
methods can't be in aPoolCluster
connectionof
type can't be aPoolCluster
promise.d.ts
Constants
Types
(it's necessary to fix both JS and TS)Notes
🔬 About TypeScript Tests
The tests are based on TypeScript compilation and not executes the compiled code.
ℹ️ About refactoring
The PR #2067 solves all the following refactoring, but it has become too long and hard to review. Then, I plan to split it into smaller tasks and submit them again.
1) Small refactoring
*.ts
files intotsconfig.json
(except for tests)eslint
errors@types/mocha
,@types/chai
,mocha
andchai
dependencies*.ts
file tolint
script (including the tests)2) Large refactoring
query
andexecute
overloads3) Optional refactoring
moduleResolution: nodenext
strictFunctionTypes: false
fromtsconfig.json
🕐 Open Issues that have possibly already been resolved
The text was updated successfully, but these errors were encountered: