microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.27k stars 118 forks source link

@devicescript/gpio does not export some functions #409

Closed wh1tecat-nya closed 1 year ago

wh1tecat-nya commented 1 year ago

in servers/pins document, pinMode, digitalWrite, digitalRead, subscribeDigital are exported by @devicescript/gpio

image (sorry error message is Japanese, but TS2305 is no exported member error.)

but in my workspace, it doesn't. which is correct?

pelikhan commented 1 year ago

Could you make sure the reference to devicescript dependencies in package.json are >= 2.9.13 ?

wh1tecat-nya commented 1 year ago

@pelikhan Sorry for the slow response. I had v2.9.12 and update it, I got it resolved. Thank you!