@types/web-bluetooth
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -106,3 +106,7 @@ // Type definitions for Web Bluetooth | ||
stopNotifications(): Promise<BluetoothRemoteGATTCharacteristic>; | ||
addEventListener(type: "characteristicvaluechanged", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; | ||
addEventListener( | ||
type: "characteristicvaluechanged", | ||
listener: (this: this, ev: Event) => any, | ||
useCapture?: boolean, | ||
): void; | ||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; | ||
@@ -149,3 +153,5 @@ } | ||
interface BluetoothDevice extends EventTarget, BluetoothDeviceEventHandlers, CharacteristicEventHandlers, ServiceEventHandlers { | ||
interface BluetoothDevice | ||
extends EventTarget, BluetoothDeviceEventHandlers, CharacteristicEventHandlers, ServiceEventHandlers | ||
{ | ||
readonly id: string; | ||
@@ -157,8 +163,18 @@ readonly name?: string | undefined; | ||
readonly watchingAdvertisements: boolean; | ||
addEventListener(type: "gattserverdisconnected", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; | ||
addEventListener(type: "advertisementreceived", listener: (this: this, ev: BluetoothAdvertisingEvent) => any, useCapture?: boolean): void; | ||
addEventListener( | ||
type: "gattserverdisconnected", | ||
listener: (this: this, ev: Event) => any, | ||
useCapture?: boolean, | ||
): void; | ||
addEventListener( | ||
type: "advertisementreceived", | ||
listener: (this: this, ev: BluetoothAdvertisingEvent) => any, | ||
useCapture?: boolean, | ||
): void; | ||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; | ||
} | ||
interface Bluetooth extends EventTarget, BluetoothDeviceEventHandlers, CharacteristicEventHandlers, ServiceEventHandlers { | ||
interface Bluetooth | ||
extends EventTarget, BluetoothDeviceEventHandlers, CharacteristicEventHandlers, ServiceEventHandlers | ||
{ | ||
getDevices(): Promise<BluetoothDevice[]>; | ||
@@ -171,3 +187,7 @@ getAvailability(): Promise<boolean>; | ||
addEventListener(type: "availabilitychanged", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; | ||
addEventListener(type: "advertisementreceived", listener: (this: this, ev: BluetoothAdvertisingEvent) => any, useCapture?: boolean): void; | ||
addEventListener( | ||
type: "advertisementreceived", | ||
listener: (this: this, ev: BluetoothAdvertisingEvent) => any, | ||
useCapture?: boolean, | ||
): void; | ||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; | ||
@@ -174,0 +194,0 @@ } |
{ | ||
"name": "@types/web-bluetooth", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "TypeScript definitions for Web Bluetooth", | ||
@@ -38,4 +38,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/web-bluetooth", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "50ded6ad9a4a36988815fd095d86e3929f9a2a219383733d597aefb8a9d67558", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "f8714903c001398af17f739a8a4f761b0f4984a1653e425b25a3381a50dfe5cf", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 21 Apr 2023 17:02:43 GMT | ||
* Last updated: Mon, 25 Sep 2023 13:39:06 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `BluetoothUUID` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11317
178