Migrate to TypeScript
See original GitHub issueWe plan to gradually migrate brain.js to TypeScript, code base is pretty large, so we would love your help! 💪
How to contribute?
- Convert a file from .js to .ts
- Add types, fix all type errors.
- Submit a PR! 🎉
Here you can find a guide on how to contribute.
Want to convert something, let us know in the comment and go ahead! 😎
To avoid duplicate work please comment on which part you want to work on (as long as nobody else is working on it) so we can mark it as taken.
Reach out to us! Feel free to reach if you have questions or need help getting started. You can leave comments here or you can tag me in your PR if you need any help or you’re not sure about something!
You can also get in touch on our & .
Happy Coding! 🤟
UPDATE:
Wohoooo!!! 🎉
All files inside src
directory are migrated to typescript. (Except few ones which are already taken up and being worked on), though we are still looking on improvements to types in these files and removing any
types from the source. You are welcome to contribute. 😊
__tests__
directory has still some files left that needs migration to typescript, so feel free to pick em up! 🍭
UPDATE
For anyone looking to contribute, here is the list of files that still needs typescript migration:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:136 (124 by maintainers)
Top GitHub Comments
With https://github.com/BrainJS/brain.js/commit/6c86dce270ae0a0414a85cced0ff3c24ac8f30cd I believe we are now a full on typescript library. Ty everyone for your hard work!
Starting on src/recurrent/rnn.js. What a bear!