@girs/bamf-3 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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/bamf-3.d.ts +249 -172
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/bamf-3)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Bamf-3, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Bamf-3, 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/bamf-3.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 GObject from '@girs/gobject-2.0';
12
14
  import type GLib from '@girs/glib-2.0';
@@ -82,18 +84,17 @@ export namespace Bamf {
82
84
  (self: Tab, preview_data: string): void;
83
85
  }
84
86
  namespace Application {
85
- // Signal callback interfaces
86
-
87
- interface DesktopFileUpdated {
88
- (object: string): void;
89
- }
90
-
91
- interface WindowAdded {
92
- (object: Window): void;
93
- }
94
-
95
- interface WindowRemoved {
96
- (object: Window): void;
87
+ // Signal signatures
88
+ interface SignalSignatures extends View.SignalSignatures {
89
+ 'desktop-file-updated': (arg0: string) => void;
90
+ 'window-added': (arg0: Window) => void;
91
+ 'window-removed': (arg0: Window) => void;
92
+ 'notify::active': (pspec: GObject.ParamSpec) => void;
93
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
94
+ 'notify::running': (pspec: GObject.ParamSpec) => void;
95
+ 'notify::starting': (pspec: GObject.ParamSpec) => void;
96
+ 'notify::urgent': (pspec: GObject.ParamSpec) => void;
97
+ 'notify::user-visible': (pspec: GObject.ParamSpec) => void;
97
98
  }
98
99
 
99
100
  // Constructor properties interface
@@ -104,6 +105,15 @@ export namespace Bamf {
104
105
  class Application extends View {
105
106
  static $gtype: GObject.GType<Application>;
106
107
 
108
+ /**
109
+ * Compile-time signal type information.
110
+ *
111
+ * This instance property is generated only for TypeScript type checking.
112
+ * It is not defined at runtime and should not be accessed in JS code.
113
+ * @internal
114
+ */
115
+ $signals: Application.SignalSignatures;
116
+
107
117
  // Constructors
108
118
 
109
119
  constructor(properties?: Partial<Application.ConstructorProps>, ...args: any[]);
@@ -112,18 +122,21 @@ export namespace Bamf {
112
122
 
113
123
  // Signals
114
124
 
115
- connect(id: string, callback: (...args: any[]) => any): number;
116
- connect_after(id: string, callback: (...args: any[]) => any): number;
117
- emit(id: string, ...args: any[]): void;
118
- connect(signal: 'desktop-file-updated', callback: (_source: this, object: string) => void): number;
119
- connect_after(signal: 'desktop-file-updated', callback: (_source: this, object: string) => void): number;
120
- emit(signal: 'desktop-file-updated', object: string): void;
121
- connect(signal: 'window-added', callback: (_source: this, object: Window) => void): number;
122
- connect_after(signal: 'window-added', callback: (_source: this, object: Window) => void): number;
123
- emit(signal: 'window-added', object: Window): void;
124
- connect(signal: 'window-removed', callback: (_source: this, object: Window) => void): number;
125
- connect_after(signal: 'window-removed', callback: (_source: this, object: Window) => void): number;
126
- emit(signal: 'window-removed', object: Window): void;
125
+ connect<K extends keyof Application.SignalSignatures>(
126
+ signal: K,
127
+ callback: GObject.SignalCallback<this, Application.SignalSignatures[K]>,
128
+ ): number;
129
+ connect(signal: string, callback: (...args: any[]) => any): number;
130
+ connect_after<K extends keyof Application.SignalSignatures>(
131
+ signal: K,
132
+ callback: GObject.SignalCallback<this, Application.SignalSignatures[K]>,
133
+ ): number;
134
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
135
+ emit<K extends keyof Application.SignalSignatures>(
136
+ signal: K,
137
+ ...args: GObject.GjsParameters<Application.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
138
+ ): void;
139
+ emit(signal: string, ...args: any[]): void;
127
140
 
128
141
  // Methods
129
142
 
@@ -165,6 +178,9 @@ export namespace Bamf {
165
178
  }
166
179
 
167
180
  namespace Control {
181
+ // Signal signatures
182
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
183
+
168
184
  // Constructor properties interface
169
185
 
170
186
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -173,12 +189,39 @@ export namespace Bamf {
173
189
  class Control extends GObject.Object {
174
190
  static $gtype: GObject.GType<Control>;
175
191
 
192
+ /**
193
+ * Compile-time signal type information.
194
+ *
195
+ * This instance property is generated only for TypeScript type checking.
196
+ * It is not defined at runtime and should not be accessed in JS code.
197
+ * @internal
198
+ */
199
+ $signals: Control.SignalSignatures;
200
+
176
201
  // Constructors
177
202
 
178
203
  constructor(properties?: Partial<Control.ConstructorProps>, ...args: any[]);
179
204
 
180
205
  _init(...args: any[]): void;
181
206
 
207
+ // Signals
208
+
209
+ connect<K extends keyof Control.SignalSignatures>(
210
+ signal: K,
211
+ callback: GObject.SignalCallback<this, Control.SignalSignatures[K]>,
212
+ ): number;
213
+ connect(signal: string, callback: (...args: any[]) => any): number;
214
+ connect_after<K extends keyof Control.SignalSignatures>(
215
+ signal: K,
216
+ callback: GObject.SignalCallback<this, Control.SignalSignatures[K]>,
217
+ ): number;
218
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
219
+ emit<K extends keyof Control.SignalSignatures>(
220
+ signal: K,
221
+ ...args: GObject.GjsParameters<Control.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
222
+ ): void;
223
+ emit(signal: string, ...args: any[]): void;
224
+
182
225
  // Static methods
183
226
 
184
227
  static get_default(): Control;
@@ -192,26 +235,13 @@ export namespace Bamf {
192
235
  }
193
236
 
194
237
  namespace Matcher {
195
- // Signal callback interfaces
196
-
197
- interface ActiveApplicationChanged {
198
- (object: Application, p0: Application): void;
199
- }
200
-
201
- interface ActiveWindowChanged {
202
- (object: Window, p0: Window): void;
203
- }
204
-
205
- interface StackingOrderChanged {
206
- (): void;
207
- }
208
-
209
- interface ViewClosed {
210
- (object: View): void;
211
- }
212
-
213
- interface ViewOpened {
214
- (object: View): void;
238
+ // Signal signatures
239
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
240
+ 'active-application-changed': (arg0: Application, arg1: Application) => void;
241
+ 'active-window-changed': (arg0: Window, arg1: Window) => void;
242
+ 'stacking-order-changed': () => void;
243
+ 'view-closed': (arg0: View) => void;
244
+ 'view-opened': (arg0: View) => void;
215
245
  }
216
246
 
217
247
  // Constructor properties interface
@@ -222,6 +252,15 @@ export namespace Bamf {
222
252
  class Matcher extends GObject.Object {
223
253
  static $gtype: GObject.GType<Matcher>;
224
254
 
255
+ /**
256
+ * Compile-time signal type information.
257
+ *
258
+ * This instance property is generated only for TypeScript type checking.
259
+ * It is not defined at runtime and should not be accessed in JS code.
260
+ * @internal
261
+ */
262
+ $signals: Matcher.SignalSignatures;
263
+
225
264
  // Constructors
226
265
 
227
266
  constructor(properties?: Partial<Matcher.ConstructorProps>, ...args: any[]);
@@ -230,33 +269,21 @@ export namespace Bamf {
230
269
 
231
270
  // Signals
232
271
 
233
- connect(id: string, callback: (...args: any[]) => any): number;
234
- connect_after(id: string, callback: (...args: any[]) => any): number;
235
- emit(id: string, ...args: any[]): void;
236
- connect(
237
- signal: 'active-application-changed',
238
- callback: (_source: this, object: Application, p0: Application) => void,
272
+ connect<K extends keyof Matcher.SignalSignatures>(
273
+ signal: K,
274
+ callback: GObject.SignalCallback<this, Matcher.SignalSignatures[K]>,
239
275
  ): number;
240
- connect_after(
241
- signal: 'active-application-changed',
242
- callback: (_source: this, object: Application, p0: Application) => void,
276
+ connect(signal: string, callback: (...args: any[]) => any): number;
277
+ connect_after<K extends keyof Matcher.SignalSignatures>(
278
+ signal: K,
279
+ callback: GObject.SignalCallback<this, Matcher.SignalSignatures[K]>,
243
280
  ): number;
244
- emit(signal: 'active-application-changed', object: Application, p0: Application): void;
245
- connect(signal: 'active-window-changed', callback: (_source: this, object: Window, p0: Window) => void): number;
246
- connect_after(
247
- signal: 'active-window-changed',
248
- callback: (_source: this, object: Window, p0: Window) => void,
249
- ): number;
250
- emit(signal: 'active-window-changed', object: Window, p0: Window): void;
251
- connect(signal: 'stacking-order-changed', callback: (_source: this) => void): number;
252
- connect_after(signal: 'stacking-order-changed', callback: (_source: this) => void): number;
253
- emit(signal: 'stacking-order-changed'): void;
254
- connect(signal: 'view-closed', callback: (_source: this, object: View) => void): number;
255
- connect_after(signal: 'view-closed', callback: (_source: this, object: View) => void): number;
256
- emit(signal: 'view-closed', object: View): void;
257
- connect(signal: 'view-opened', callback: (_source: this, object: View) => void): number;
258
- connect_after(signal: 'view-opened', callback: (_source: this, object: View) => void): number;
259
- emit(signal: 'view-opened', object: View): void;
281
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
282
+ emit<K extends keyof Matcher.SignalSignatures>(
283
+ signal: K,
284
+ ...args: GObject.GjsParameters<Matcher.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
285
+ ): void;
286
+ emit(signal: string, ...args: any[]): void;
260
287
 
261
288
  // Static methods
262
289
 
@@ -343,6 +370,20 @@ export namespace Bamf {
343
370
  }
344
371
 
345
372
  namespace Tab {
373
+ // Signal signatures
374
+ interface SignalSignatures extends View.SignalSignatures {
375
+ 'notify::desktop-id': (pspec: GObject.ParamSpec) => void;
376
+ 'notify::is-foreground-tab': (pspec: GObject.ParamSpec) => void;
377
+ 'notify::location': (pspec: GObject.ParamSpec) => void;
378
+ 'notify::xid': (pspec: GObject.ParamSpec) => void;
379
+ 'notify::active': (pspec: GObject.ParamSpec) => void;
380
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
381
+ 'notify::running': (pspec: GObject.ParamSpec) => void;
382
+ 'notify::starting': (pspec: GObject.ParamSpec) => void;
383
+ 'notify::urgent': (pspec: GObject.ParamSpec) => void;
384
+ 'notify::user-visible': (pspec: GObject.ParamSpec) => void;
385
+ }
386
+
346
387
  // Constructor properties interface
347
388
 
348
389
  interface ConstructorProps extends View.ConstructorProps {
@@ -367,12 +408,39 @@ export namespace Bamf {
367
408
  get location(): string;
368
409
  get xid(): number;
369
410
 
411
+ /**
412
+ * Compile-time signal type information.
413
+ *
414
+ * This instance property is generated only for TypeScript type checking.
415
+ * It is not defined at runtime and should not be accessed in JS code.
416
+ * @internal
417
+ */
418
+ $signals: Tab.SignalSignatures;
419
+
370
420
  // Constructors
371
421
 
372
422
  constructor(properties?: Partial<Tab.ConstructorProps>, ...args: any[]);
373
423
 
374
424
  _init(...args: any[]): void;
375
425
 
426
+ // Signals
427
+
428
+ connect<K extends keyof Tab.SignalSignatures>(
429
+ signal: K,
430
+ callback: GObject.SignalCallback<this, Tab.SignalSignatures[K]>,
431
+ ): number;
432
+ connect(signal: string, callback: (...args: any[]) => any): number;
433
+ connect_after<K extends keyof Tab.SignalSignatures>(
434
+ signal: K,
435
+ callback: GObject.SignalCallback<this, Tab.SignalSignatures[K]>,
436
+ ): number;
437
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
438
+ emit<K extends keyof Tab.SignalSignatures>(
439
+ signal: K,
440
+ ...args: GObject.GjsParameters<Tab.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
441
+ ): void;
442
+ emit(signal: string, ...args: any[]): void;
443
+
376
444
  // Virtual methods
377
445
 
378
446
  /**
@@ -414,50 +482,25 @@ export namespace Bamf {
414
482
  }
415
483
 
416
484
  namespace View {
417
- // Signal callback interfaces
418
-
419
- interface ActiveChanged {
420
- (object: boolean): void;
421
- }
422
-
423
- interface ChildAdded {
424
- (object: View): void;
425
- }
426
-
427
- interface ChildMoved {
428
- (object: View): void;
429
- }
430
-
431
- interface ChildRemoved {
432
- (object: View): void;
433
- }
434
-
435
- interface Closed {
436
- (): void;
437
- }
438
-
439
- interface IconChanged {
440
- (object: string): void;
441
- }
442
-
443
- interface NameChanged {
444
- (object: string, p0: string): void;
445
- }
446
-
447
- interface RunningChanged {
448
- (object: boolean): void;
449
- }
450
-
451
- interface StartingChanged {
452
- (object: boolean): void;
453
- }
454
-
455
- interface UrgentChanged {
456
- (object: boolean): void;
457
- }
458
-
459
- interface UserVisibleChanged {
460
- (object: boolean): void;
485
+ // Signal signatures
486
+ interface SignalSignatures extends GObject.InitiallyUnowned.SignalSignatures {
487
+ 'active-changed': (arg0: boolean) => void;
488
+ 'child-added': (arg0: View) => void;
489
+ 'child-moved': (arg0: View) => void;
490
+ 'child-removed': (arg0: View) => void;
491
+ closed: () => void;
492
+ 'icon-changed': (arg0: string) => void;
493
+ 'name-changed': (arg0: string, arg1: string) => void;
494
+ 'running-changed': (arg0: boolean) => void;
495
+ 'starting-changed': (arg0: boolean) => void;
496
+ 'urgent-changed': (arg0: boolean) => void;
497
+ 'user-visible-changed': (arg0: boolean) => void;
498
+ 'notify::active': (pspec: GObject.ParamSpec) => void;
499
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
500
+ 'notify::running': (pspec: GObject.ParamSpec) => void;
501
+ 'notify::starting': (pspec: GObject.ParamSpec) => void;
502
+ 'notify::urgent': (pspec: GObject.ParamSpec) => void;
503
+ 'notify::user-visible': (pspec: GObject.ParamSpec) => void;
461
504
  }
462
505
 
463
506
  // Constructor properties interface
@@ -486,6 +529,15 @@ export namespace Bamf {
486
529
  get user_visible(): boolean;
487
530
  get userVisible(): boolean;
488
531
 
532
+ /**
533
+ * Compile-time signal type information.
534
+ *
535
+ * This instance property is generated only for TypeScript type checking.
536
+ * It is not defined at runtime and should not be accessed in JS code.
537
+ * @internal
538
+ */
539
+ $signals: View.SignalSignatures;
540
+
489
541
  // Constructors
490
542
 
491
543
  constructor(properties?: Partial<View.ConstructorProps>, ...args: any[]);
@@ -494,42 +546,21 @@ export namespace Bamf {
494
546
 
495
547
  // Signals
496
548
 
497
- connect(id: string, callback: (...args: any[]) => any): number;
498
- connect_after(id: string, callback: (...args: any[]) => any): number;
499
- emit(id: string, ...args: any[]): void;
500
- connect(signal: 'active-changed', callback: (_source: this, object: boolean) => void): number;
501
- connect_after(signal: 'active-changed', callback: (_source: this, object: boolean) => void): number;
502
- emit(signal: 'active-changed', object: boolean): void;
503
- connect(signal: 'child-added', callback: (_source: this, object: View) => void): number;
504
- connect_after(signal: 'child-added', callback: (_source: this, object: View) => void): number;
505
- emit(signal: 'child-added', object: View): void;
506
- connect(signal: 'child-moved', callback: (_source: this, object: View) => void): number;
507
- connect_after(signal: 'child-moved', callback: (_source: this, object: View) => void): number;
508
- emit(signal: 'child-moved', object: View): void;
509
- connect(signal: 'child-removed', callback: (_source: this, object: View) => void): number;
510
- connect_after(signal: 'child-removed', callback: (_source: this, object: View) => void): number;
511
- emit(signal: 'child-removed', object: View): void;
512
- connect(signal: 'closed', callback: (_source: this) => void): number;
513
- connect_after(signal: 'closed', callback: (_source: this) => void): number;
514
- emit(signal: 'closed'): void;
515
- connect(signal: 'icon-changed', callback: (_source: this, object: string) => void): number;
516
- connect_after(signal: 'icon-changed', callback: (_source: this, object: string) => void): number;
517
- emit(signal: 'icon-changed', object: string): void;
518
- connect(signal: 'name-changed', callback: (_source: this, object: string, p0: string) => void): number;
519
- connect_after(signal: 'name-changed', callback: (_source: this, object: string, p0: string) => void): number;
520
- emit(signal: 'name-changed', object: string, p0: string): void;
521
- connect(signal: 'running-changed', callback: (_source: this, object: boolean) => void): number;
522
- connect_after(signal: 'running-changed', callback: (_source: this, object: boolean) => void): number;
523
- emit(signal: 'running-changed', object: boolean): void;
524
- connect(signal: 'starting-changed', callback: (_source: this, object: boolean) => void): number;
525
- connect_after(signal: 'starting-changed', callback: (_source: this, object: boolean) => void): number;
526
- emit(signal: 'starting-changed', object: boolean): void;
527
- connect(signal: 'urgent-changed', callback: (_source: this, object: boolean) => void): number;
528
- connect_after(signal: 'urgent-changed', callback: (_source: this, object: boolean) => void): number;
529
- emit(signal: 'urgent-changed', object: boolean): void;
530
- connect(signal: 'user-visible-changed', callback: (_source: this, object: boolean) => void): number;
531
- connect_after(signal: 'user-visible-changed', callback: (_source: this, object: boolean) => void): number;
532
- emit(signal: 'user-visible-changed', object: boolean): void;
549
+ connect<K extends keyof View.SignalSignatures>(
550
+ signal: K,
551
+ callback: GObject.SignalCallback<this, View.SignalSignatures[K]>,
552
+ ): number;
553
+ connect(signal: string, callback: (...args: any[]) => any): number;
554
+ connect_after<K extends keyof View.SignalSignatures>(
555
+ signal: K,
556
+ callback: GObject.SignalCallback<this, View.SignalSignatures[K]>,
557
+ ): number;
558
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
559
+ emit<K extends keyof View.SignalSignatures>(
560
+ signal: K,
561
+ ...args: GObject.GjsParameters<View.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
562
+ ): void;
563
+ emit(signal: string, ...args: any[]): void;
533
564
 
534
565
  // Virtual methods
535
566
 
@@ -636,14 +667,16 @@ export namespace Bamf {
636
667
  }
637
668
 
638
669
  namespace Window {
639
- // Signal callback interfaces
640
-
641
- interface MaximizedChanged {
642
- (object: number, p0: number): void;
643
- }
644
-
645
- interface MonitorChanged {
646
- (object: number, p0: number): void;
670
+ // Signal signatures
671
+ interface SignalSignatures extends View.SignalSignatures {
672
+ 'maximized-changed': (arg0: number, arg1: number) => void;
673
+ 'monitor-changed': (arg0: number, arg1: number) => void;
674
+ 'notify::active': (pspec: GObject.ParamSpec) => void;
675
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
676
+ 'notify::running': (pspec: GObject.ParamSpec) => void;
677
+ 'notify::starting': (pspec: GObject.ParamSpec) => void;
678
+ 'notify::urgent': (pspec: GObject.ParamSpec) => void;
679
+ 'notify::user-visible': (pspec: GObject.ParamSpec) => void;
647
680
  }
648
681
 
649
682
  // Constructor properties interface
@@ -654,6 +687,15 @@ export namespace Bamf {
654
687
  class Window extends View {
655
688
  static $gtype: GObject.GType<Window>;
656
689
 
690
+ /**
691
+ * Compile-time signal type information.
692
+ *
693
+ * This instance property is generated only for TypeScript type checking.
694
+ * It is not defined at runtime and should not be accessed in JS code.
695
+ * @internal
696
+ */
697
+ $signals: Window.SignalSignatures;
698
+
657
699
  // Constructors
658
700
 
659
701
  constructor(properties?: Partial<Window.ConstructorProps>, ...args: any[]);
@@ -662,28 +704,31 @@ export namespace Bamf {
662
704
 
663
705
  // Signals
664
706
 
665
- connect(id: string, callback: (...args: any[]) => any): number;
666
- connect_after(id: string, callback: (...args: any[]) => any): number;
667
- emit(id: string, ...args: any[]): void;
668
- connect(signal: 'maximized-changed', callback: (_source: this, object: number, p0: number) => void): number;
669
- connect_after(
670
- signal: 'maximized-changed',
671
- callback: (_source: this, object: number, p0: number) => void,
707
+ connect<K extends keyof Window.SignalSignatures>(
708
+ signal: K,
709
+ callback: GObject.SignalCallback<this, Window.SignalSignatures[K]>,
672
710
  ): number;
673
- emit(signal: 'maximized-changed', object: number, p0: number): void;
674
- connect(signal: 'monitor-changed', callback: (_source: this, object: number, p0: number) => void): number;
675
- connect_after(signal: 'monitor-changed', callback: (_source: this, object: number, p0: number) => void): number;
676
- emit(signal: 'monitor-changed', object: number, p0: number): void;
711
+ connect(signal: string, callback: (...args: any[]) => any): number;
712
+ connect_after<K extends keyof Window.SignalSignatures>(
713
+ signal: K,
714
+ callback: GObject.SignalCallback<this, Window.SignalSignatures[K]>,
715
+ ): number;
716
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
717
+ emit<K extends keyof Window.SignalSignatures>(
718
+ signal: K,
719
+ ...args: GObject.GjsParameters<Window.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
720
+ ): void;
721
+ emit(signal: string, ...args: any[]): void;
677
722
 
678
723
  // Virtual methods
679
724
 
680
725
  vfunc_get_monitor(): number;
681
726
  vfunc_get_pid(): number;
682
- vfunc_get_transient(): Window | null;
727
+ vfunc_get_transient(): Window;
683
728
  vfunc_get_utf8_prop(prop: string): string;
684
729
  vfunc_get_window_type(): WindowType;
685
730
  vfunc_get_xid(): number;
686
- vfunc_last_active(): never;
731
+ vfunc_last_active(): number;
687
732
  vfunc_maximized(): WindowMaximizationType;
688
733
  vfunc_maximized_changed(old_value: number, new_value: number): void;
689
734
  vfunc_monitor_changed(old_value: number, new_value: number): void;
@@ -692,15 +737,23 @@ export namespace Bamf {
692
737
 
693
738
  get_monitor(): number;
694
739
  get_pid(): number;
695
- get_transient(): Window | null;
740
+ get_transient(): Window;
696
741
  get_utf8_prop(prop: string): string;
697
742
  get_window_type(): WindowType;
698
743
  get_xid(): number;
699
- last_active(): never;
744
+ last_active(): number;
700
745
  maximized(): WindowMaximizationType;
701
746
  }
702
747
 
703
748
  type ApplicationClass = typeof Application;
749
+ abstract class ApplicationPrivate {
750
+ static $gtype: GObject.GType<ApplicationPrivate>;
751
+
752
+ // Constructors
753
+
754
+ _init(...args: any[]): void;
755
+ }
756
+
704
757
  type ControlClass = typeof Control;
705
758
  abstract class ControlPrivate {
706
759
  static $gtype: GObject.GType<ControlPrivate>;
@@ -720,8 +773,32 @@ export namespace Bamf {
720
773
  }
721
774
 
722
775
  type TabClass = typeof Tab;
776
+ abstract class TabPrivate {
777
+ static $gtype: GObject.GType<TabPrivate>;
778
+
779
+ // Constructors
780
+
781
+ _init(...args: any[]): void;
782
+ }
783
+
723
784
  type ViewClass = typeof View;
785
+ abstract class ViewPrivate {
786
+ static $gtype: GObject.GType<ViewPrivate>;
787
+
788
+ // Constructors
789
+
790
+ _init(...args: any[]): void;
791
+ }
792
+
724
793
  type WindowClass = typeof Window;
794
+ abstract class WindowPrivate {
795
+ static $gtype: GObject.GType<WindowPrivate>;
796
+
797
+ // Constructors
798
+
799
+ _init(...args: any[]): void;
800
+ }
801
+
725
802
  /**
726
803
  * Name of the imported GIR library
727
804
  * `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/bamf-3",
3
- "version": "3.0.0-4.0.0-beta.21",
3
+ "version": "3.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Bamf-3, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "bamf-3.js",
@@ -31,9 +31,9 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "^4.0.0-beta.21",
35
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
36
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/gjs": "^4.0.0-beta.24",
35
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
36
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "*"