chrvadala / node-ble

Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus
https://www.npmjs.com/package/node-ble
MIT License
310 stars 45 forks source link

Add type declarations for the methods `writeValueWithoutResponse` and `writeValueWithResponse` #63

Closed dmarku closed 6 months ago

dmarku commented 9 months ago

Add type declarations for the methods writeValueWithoutResponse and writeValueWithResponse that were added to GattCharacteristic with https://github.com/chrvadala/node-ble/pull/47.

I've tried to use these new methods in an application and the TypeScript compiler complained that they didn't exist on GattCharacteristic.

I've edited index.d.ts in the web browser with Github's web interface which doesn't check for correctness, so I hope I got the declarations right.