[Question]: Is there interest in accepting Typescript backend PRs ? #1224
-
Contact DetailsNo response What is your question?I'm interested in contributing, and I believe typing will help make the code more accessible. Is there an appetite for making use of TS on the backend? More DetailsHaving read the considerations in the Contributing Guidelines, I personally don't believe there is an advantage to making many changes in one go. The first change would be to configure TS to include Not looking get overzealous with types but signatures on functions would be a great to have. Any problems in my reasoning here? What is the main subject of your question?Other ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Unfortunately this could be too much of an undertaking for not a lot of gain, especially since some of the modules are built with CJS specific code, and figuring them out in ESM could be involved or rather not worth the effort.
I 100% agree with you here; though Typescript safety is nice (I like it a lot on the frontend), I've begun to write out more JSDoc and make use of typedefs to benefit from this. This even allows me to re-use some of the types from the frontend. See To this end, I would very much appreciate help in adding more JSDoc or improving what's already there Some resources that have bolstered my opinion against an effort to convert the project to ESM/TS: |
Beta Was this translation helpful? Give feedback.
-
Thanks, that seems a reasonable compromise for the time being. |
Beta Was this translation helpful? Give feedback.
Unfortunately this could be too much of an undertaking for not a lot of gain, especially since some of the modules are built with CJS specific code, and figuring them out in ESM could be involved or rather not worth the effort.
I 100% agree with you here; though Typescript safety is nice (I like it a lot on the frontend), I've begun to write out more JSDoc and make use of typedefs to benefit from this. This even allows me to re-use some of the types from the frontend. See
api/typedefs.js
To this end, I would very much appreciate help in adding more JSDoc or improving what's already there
Some resources that have bolstered my opinion agai…