From 425958da9b90c529895386558666532a89d1a432 Mon Sep 17 00:00:00 2001 From: Markus Dittmann Date: Thu, 15 Feb 2024 19:25:44 +0100 Subject: [PATCH] Add type declarations for the methods `writeValueWithoutResponse` and `writeValueWithResponse` (#63) * add type declarations for `writeValueWithoutResponse` and `writeValueWithResponse` methods Add type declarations for the methods `writeValueWithoutResponse` and `writeValueWithResponse` that were added to `GattCharacteristic` with https://github.com/chrvadala/node-ble/pull/47 * Fix typo --- src/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.d.ts b/src/index.d.ts index b9a3507..9c4df75 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -7,6 +7,8 @@ declare namespace NodeBle { isNotifying(): Promise; readValue(offset?: number): Promise; writeValue(buffer: Buffer, optionsOrOffset?: number | WriteValueOptions): Promise; + writeValueWithoutResponse(buffer: Buffer, offset?: number): Promise; + writeValueWithResponse(buffer: Buffer, offset?: number): Promise; startNotifications(): Promise; stopNotifications(): Promise; toString(): Promise;