iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
401 stars 166 forks source link

Starting conversion to TypeScript #391

Open longzheng opened 1 year ago

longzheng commented 1 year ago

I think converting this project to TypeScript will help make it easier to identify and fix type-related bugs and hopefully also make it easier for people to contribute new/changed functionality with more confidence.

I've started laying out the foundations to progressively migrate this project to TypeScript. I plan on converting each of the existing .js files to .ts.

I'm testing along the way with my existing Homebridge installation to make sure I don't break the core functionality, but since I don't have a lot of accessories I can only test the few that I have.

There's a lot about this codebase I'm not familiar with so would appreciate any and all assistance.