maxinminax / node-mihome

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
121 stars 35 forks source link

Convert to TypeScript? #7

Closed 0x2206 closed 3 years ago

0x2206 commented 3 years ago

First of all thanks for this lib! That's really awesome we have alternative to, probably abandoned, https://github.com/aholstenson/miio.

I played with node-mihome lib for a while and it looks really promising. I achieved what was not possible with @aholstenson/miio in several lines of code. Cool :-)

What do you think about moving to TypeScript for development? I can help with this. Do you accept PRs?

maxinminax commented 3 years ago

Thankyou and welcome for all PRs

ouv27 commented 3 years ago

Hello, is it possible to use miio library in TypeScript development ? A working js code didn't work in TypeScript with this error : (node:8212) UnhandledPromiseRejectionWarning: TypeError: fetch is not a function at MiCloudProtocol._loginStep1 An idea ? Tks a lot for your help