Skip to content

Commit

Permalink
add type declarations for writeValueWithoutResponse and `writeValue…
Browse files Browse the repository at this point in the history
…WithResponse` methods

Add type declarations for the methods `writeValueWithoutResponse` and `writeValueWithResponse` that were added to `GattCharacteristic` with chrvadala#47
  • Loading branch information
dmarku authored Nov 14, 2023
1 parent 6c68398 commit b8f04ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ declare namespace NodeBle {
isNotifying(): Promise<boolean>;
readValue(offset?: number): Promise<Buffer>;
writeValue(buffer: Buffer, optionsOrOffset?: number | WriteValueOptions): Promise<void>;
writeValueWithoutResponse(buffer: Buffer, offset?: number): Promise<void>;
writeValueWithResponse(buffer: Buffer, offset? number): Promise<void>;
startNotifications(): Promise<void>;
stopNotifications(): Promise<void>;
toString(): Promise<string>;
Expand Down

0 comments on commit b8f04ca

Please sign in to comment.