@types/web-bluetooth
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -140,6 +140,10 @@ // Type definitions for Web Bluetooth | ||
interface BluetoothDeviceEventHandlers { | ||
onadvertisementreceived: (this: this, ev: Event) => any; | ||
onadvertisementreceived: (this: this, ev: BluetoothAdvertisingEvent) => any; | ||
ongattserverdisconnected: (this: this, ev: Event) => any; | ||
} | ||
interface WatchAdvertisementsOptions { | ||
signal?: AbortSignal; | ||
} | ||
interface BluetoothDevice extends EventTarget, BluetoothDeviceEventHandlers, CharacteristicEventHandlers, ServiceEventHandlers { | ||
@@ -151,7 +155,7 @@ readonly id: string; | ||
forget(): Promise<void>; | ||
watchAdvertisements(): Promise<void>; | ||
watchAdvertisements(options?: WatchAdvertisementsOptions): Promise<void>; | ||
unwatchAdvertisements(): void; | ||
readonly watchingAdvertisements: boolean; | ||
addEventListener(type: "gattserverdisconnected", listener: (this: this, ev: Event) => any, useCapture?: boolean): void; | ||
addEventListener(type: "advertisementreceived", 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; | ||
@@ -158,0 +162,0 @@ } |
{ | ||
"name": "@types/web-bluetooth", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "TypeScript definitions for Web Bluetooth", | ||
@@ -38,4 +38,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/web-bluetooth", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "98452040d0cd7d66fb4bd65a3b71024d9beb8b712c3da0e2b8b1af869b50f4b4", | ||
"typesPublisherContentHash": "d892e9ae9d24a1f67aeaec0b21dff39deea3612836f422c06a0997bcbc3d1e6f", | ||
"typeScriptVersion": "3.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 11 Mar 2022 21:31:47 GMT | ||
* Last updated: Mon, 21 Mar 2022 19:31:50 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
10977
154