Socket
Socket
Sign inDemoInstall

@types/web-bluetooth

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/web-bluetooth - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

32

web-bluetooth/index.d.ts

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

6

web-bluetooth/package.json
{
"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`

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc