Socket
Socket
Sign inDemoInstall

@types/web-bluetooth

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.13 to 0.0.14

10

web-bluetooth/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc