@girs/gnomebluetooth-3.0 3.0.0-4.0.0-beta.21 → 3.0.0-4.0.0-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/gnomebluetooth-3.0.d.ts +83 -17
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for GnomeBluetooth-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for GnomeBluetooth-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gnomebluetooth-3.0.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
import '@girs/gjs';
|
|
11
|
+
|
|
10
12
|
// Module dependencies
|
|
11
13
|
import type Gio from '@girs/gio-2.0';
|
|
12
14
|
import type GObject from '@girs/gobject-2.0';
|
|
@@ -221,14 +223,17 @@ export namespace GnomeBluetooth {
|
|
|
221
223
|
SPEAKERS,
|
|
222
224
|
}
|
|
223
225
|
namespace Client {
|
|
224
|
-
// Signal
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
(
|
|
226
|
+
// Signal signatures
|
|
227
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
228
|
+
'device-added': (arg0: GObject.Object) => void;
|
|
229
|
+
'device-removed': (arg0: string) => void;
|
|
230
|
+
'notify::default-adapter': (pspec: GObject.ParamSpec) => void;
|
|
231
|
+
'notify::default-adapter-address': (pspec: GObject.ParamSpec) => void;
|
|
232
|
+
'notify::default-adapter-name': (pspec: GObject.ParamSpec) => void;
|
|
233
|
+
'notify::default-adapter-powered': (pspec: GObject.ParamSpec) => void;
|
|
234
|
+
'notify::default-adapter-setup-mode': (pspec: GObject.ParamSpec) => void;
|
|
235
|
+
'notify::default-adapter-state': (pspec: GObject.ParamSpec) => void;
|
|
236
|
+
'notify::num-adapters': (pspec: GObject.ParamSpec) => void;
|
|
232
237
|
}
|
|
233
238
|
|
|
234
239
|
// Constructor properties interface
|
|
@@ -319,6 +324,15 @@ export namespace GnomeBluetooth {
|
|
|
319
324
|
*/
|
|
320
325
|
get numAdapters(): number;
|
|
321
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Compile-time signal type information.
|
|
329
|
+
*
|
|
330
|
+
* This instance property is generated only for TypeScript type checking.
|
|
331
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
332
|
+
* @internal
|
|
333
|
+
*/
|
|
334
|
+
$signals: Client.SignalSignatures;
|
|
335
|
+
|
|
322
336
|
// Constructors
|
|
323
337
|
|
|
324
338
|
constructor(properties?: Partial<Client.ConstructorProps>, ...args: any[]);
|
|
@@ -329,15 +343,21 @@ export namespace GnomeBluetooth {
|
|
|
329
343
|
|
|
330
344
|
// Signals
|
|
331
345
|
|
|
332
|
-
connect
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
346
|
+
connect<K extends keyof Client.SignalSignatures>(
|
|
347
|
+
signal: K,
|
|
348
|
+
callback: GObject.SignalCallback<this, Client.SignalSignatures[K]>,
|
|
349
|
+
): number;
|
|
350
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
351
|
+
connect_after<K extends keyof Client.SignalSignatures>(
|
|
352
|
+
signal: K,
|
|
353
|
+
callback: GObject.SignalCallback<this, Client.SignalSignatures[K]>,
|
|
354
|
+
): number;
|
|
355
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
356
|
+
emit<K extends keyof Client.SignalSignatures>(
|
|
357
|
+
signal: K,
|
|
358
|
+
...args: GObject.GjsParameters<Client.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
359
|
+
): void;
|
|
360
|
+
emit(signal: string, ...args: any[]): void;
|
|
341
361
|
|
|
342
362
|
// Methods
|
|
343
363
|
|
|
@@ -426,6 +446,25 @@ export namespace GnomeBluetooth {
|
|
|
426
446
|
}
|
|
427
447
|
|
|
428
448
|
namespace Device {
|
|
449
|
+
// Signal signatures
|
|
450
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
451
|
+
'notify::address': (pspec: GObject.ParamSpec) => void;
|
|
452
|
+
'notify::alias': (pspec: GObject.ParamSpec) => void;
|
|
453
|
+
'notify::battery-level': (pspec: GObject.ParamSpec) => void;
|
|
454
|
+
'notify::battery-percentage': (pspec: GObject.ParamSpec) => void;
|
|
455
|
+
'notify::battery-type': (pspec: GObject.ParamSpec) => void;
|
|
456
|
+
'notify::connectable': (pspec: GObject.ParamSpec) => void;
|
|
457
|
+
'notify::connected': (pspec: GObject.ParamSpec) => void;
|
|
458
|
+
'notify::icon': (pspec: GObject.ParamSpec) => void;
|
|
459
|
+
'notify::legacy-pairing': (pspec: GObject.ParamSpec) => void;
|
|
460
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
461
|
+
'notify::paired': (pspec: GObject.ParamSpec) => void;
|
|
462
|
+
'notify::proxy': (pspec: GObject.ParamSpec) => void;
|
|
463
|
+
'notify::trusted': (pspec: GObject.ParamSpec) => void;
|
|
464
|
+
'notify::type': (pspec: GObject.ParamSpec) => void;
|
|
465
|
+
'notify::uuids': (pspec: GObject.ParamSpec) => void;
|
|
466
|
+
}
|
|
467
|
+
|
|
429
468
|
// Constructor properties interface
|
|
430
469
|
|
|
431
470
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -494,12 +533,39 @@ export namespace GnomeBluetooth {
|
|
|
494
533
|
get uuids(): string[];
|
|
495
534
|
set uuids(val: string[]);
|
|
496
535
|
|
|
536
|
+
/**
|
|
537
|
+
* Compile-time signal type information.
|
|
538
|
+
*
|
|
539
|
+
* This instance property is generated only for TypeScript type checking.
|
|
540
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
541
|
+
* @internal
|
|
542
|
+
*/
|
|
543
|
+
$signals: Device.SignalSignatures;
|
|
544
|
+
|
|
497
545
|
// Constructors
|
|
498
546
|
|
|
499
547
|
constructor(properties?: Partial<Device.ConstructorProps>, ...args: any[]);
|
|
500
548
|
|
|
501
549
|
_init(...args: any[]): void;
|
|
502
550
|
|
|
551
|
+
// Signals
|
|
552
|
+
|
|
553
|
+
connect<K extends keyof Device.SignalSignatures>(
|
|
554
|
+
signal: K,
|
|
555
|
+
callback: GObject.SignalCallback<this, Device.SignalSignatures[K]>,
|
|
556
|
+
): number;
|
|
557
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
558
|
+
connect_after<K extends keyof Device.SignalSignatures>(
|
|
559
|
+
signal: K,
|
|
560
|
+
callback: GObject.SignalCallback<this, Device.SignalSignatures[K]>,
|
|
561
|
+
): number;
|
|
562
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
563
|
+
emit<K extends keyof Device.SignalSignatures>(
|
|
564
|
+
signal: K,
|
|
565
|
+
...args: GObject.GjsParameters<Device.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
566
|
+
): void;
|
|
567
|
+
emit(signal: string, ...args: any[]): void;
|
|
568
|
+
|
|
503
569
|
// Methods
|
|
504
570
|
|
|
505
571
|
dump(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gnomebluetooth-3.0",
|
|
3
|
-
"version": "3.0.0-4.0.0-beta.
|
|
3
|
+
"version": "3.0.0-4.0.0-beta.24",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GnomeBluetooth-3.0, generated from library version 3.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gnomebluetooth-3.0.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gio-2.0": "^2.
|
|
35
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
36
|
-
"@girs/glib-2.0": "^2.
|
|
37
|
-
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.
|
|
38
|
-
"@girs/gobject-2.0": "^2.
|
|
34
|
+
"@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
|
|
35
|
+
"@girs/gjs": "^4.0.0-beta.24",
|
|
36
|
+
"@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
|
|
37
|
+
"@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
|
|
38
|
+
"@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "*"
|