@girs/amtk-5 5.0.0-4.0.0-beta.21 → 5.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/amtk-5.d.ts +159 -20
  3. package/package.json +15 -15
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/amtk-5)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Amtk-5, generated from library version 5.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Amtk-5, generated from library version 5.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/amtk-5.d.ts CHANGED
@@ -7,11 +7,13 @@
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 Gtk from '@girs/gtk-3.0';
12
14
  import type xlib from '@girs/xlib-2.0';
13
15
  import type Gdk from '@girs/gdk-3.0';
14
- import type cairo from '@girs/cairo-1.0';
16
+ import type cairo from 'cairo';
15
17
  import type GObject from '@girs/gobject-2.0';
16
18
  import type GLib from '@girs/glib-2.0';
17
19
  import type Pango from '@girs/pango-1.0';
@@ -266,6 +268,9 @@ export namespace Amtk {
266
268
  IGNORE_ACCELS_FOR_APP,
267
269
  }
268
270
  namespace ActionInfoCentralStore {
271
+ // Signal signatures
272
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
273
+
269
274
  // Constructor properties interface
270
275
 
271
276
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -274,12 +279,41 @@ export namespace Amtk {
274
279
  class ActionInfoCentralStore extends GObject.Object {
275
280
  static $gtype: GObject.GType<ActionInfoCentralStore>;
276
281
 
282
+ /**
283
+ * Compile-time signal type information.
284
+ *
285
+ * This instance property is generated only for TypeScript type checking.
286
+ * It is not defined at runtime and should not be accessed in JS code.
287
+ * @internal
288
+ */
289
+ $signals: ActionInfoCentralStore.SignalSignatures;
290
+
277
291
  // Constructors
278
292
 
279
293
  constructor(properties?: Partial<ActionInfoCentralStore.ConstructorProps>, ...args: any[]);
280
294
 
281
295
  _init(...args: any[]): void;
282
296
 
297
+ // Signals
298
+
299
+ connect<K extends keyof ActionInfoCentralStore.SignalSignatures>(
300
+ signal: K,
301
+ callback: GObject.SignalCallback<this, ActionInfoCentralStore.SignalSignatures[K]>,
302
+ ): number;
303
+ connect(signal: string, callback: (...args: any[]) => any): number;
304
+ connect_after<K extends keyof ActionInfoCentralStore.SignalSignatures>(
305
+ signal: K,
306
+ callback: GObject.SignalCallback<this, ActionInfoCentralStore.SignalSignatures[K]>,
307
+ ): number;
308
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
309
+ emit<K extends keyof ActionInfoCentralStore.SignalSignatures>(
310
+ signal: K,
311
+ ...args: GObject.GjsParameters<ActionInfoCentralStore.SignalSignatures[K]> extends [any, ...infer Q]
312
+ ? Q
313
+ : never
314
+ ): void;
315
+ emit(signal: string, ...args: any[]): void;
316
+
283
317
  // Static methods
284
318
 
285
319
  static get_singleton(): ActionInfoCentralStore;
@@ -290,6 +324,9 @@ export namespace Amtk {
290
324
  }
291
325
 
292
326
  namespace ActionInfoStore {
327
+ // Signal signatures
328
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
329
+
293
330
  // Constructor properties interface
294
331
 
295
332
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -298,6 +335,15 @@ export namespace Amtk {
298
335
  class ActionInfoStore extends GObject.Object {
299
336
  static $gtype: GObject.GType<ActionInfoStore>;
300
337
 
338
+ /**
339
+ * Compile-time signal type information.
340
+ *
341
+ * This instance property is generated only for TypeScript type checking.
342
+ * It is not defined at runtime and should not be accessed in JS code.
343
+ * @internal
344
+ */
345
+ $signals: ActionInfoStore.SignalSignatures;
346
+
301
347
  // Constructors
302
348
 
303
349
  constructor(properties?: Partial<ActionInfoStore.ConstructorProps>, ...args: any[]);
@@ -306,6 +352,24 @@ export namespace Amtk {
306
352
 
307
353
  static ['new'](): ActionInfoStore;
308
354
 
355
+ // Signals
356
+
357
+ connect<K extends keyof ActionInfoStore.SignalSignatures>(
358
+ signal: K,
359
+ callback: GObject.SignalCallback<this, ActionInfoStore.SignalSignatures[K]>,
360
+ ): number;
361
+ connect(signal: string, callback: (...args: any[]) => any): number;
362
+ connect_after<K extends keyof ActionInfoStore.SignalSignatures>(
363
+ signal: K,
364
+ callback: GObject.SignalCallback<this, ActionInfoStore.SignalSignatures[K]>,
365
+ ): number;
366
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
367
+ emit<K extends keyof ActionInfoStore.SignalSignatures>(
368
+ signal: K,
369
+ ...args: GObject.GjsParameters<ActionInfoStore.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
370
+ ): void;
371
+ emit(signal: string, ...args: any[]): void;
372
+
309
373
  // Methods
310
374
 
311
375
  /**
@@ -367,6 +431,12 @@ export namespace Amtk {
367
431
  }
368
432
 
369
433
  namespace ApplicationWindow {
434
+ // Signal signatures
435
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
436
+ 'notify::application-window': (pspec: GObject.ParamSpec) => void;
437
+ 'notify::statusbar': (pspec: GObject.ParamSpec) => void;
438
+ }
439
+
370
440
  // Constructor properties interface
371
441
 
372
442
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -395,12 +465,39 @@ export namespace Amtk {
395
465
  get statusbar(): Gtk.Statusbar;
396
466
  set statusbar(val: Gtk.Statusbar);
397
467
 
468
+ /**
469
+ * Compile-time signal type information.
470
+ *
471
+ * This instance property is generated only for TypeScript type checking.
472
+ * It is not defined at runtime and should not be accessed in JS code.
473
+ * @internal
474
+ */
475
+ $signals: ApplicationWindow.SignalSignatures;
476
+
398
477
  // Constructors
399
478
 
400
479
  constructor(properties?: Partial<ApplicationWindow.ConstructorProps>, ...args: any[]);
401
480
 
402
481
  _init(...args: any[]): void;
403
482
 
483
+ // Signals
484
+
485
+ connect<K extends keyof ApplicationWindow.SignalSignatures>(
486
+ signal: K,
487
+ callback: GObject.SignalCallback<this, ApplicationWindow.SignalSignatures[K]>,
488
+ ): number;
489
+ connect(signal: string, callback: (...args: any[]) => any): number;
490
+ connect_after<K extends keyof ApplicationWindow.SignalSignatures>(
491
+ signal: K,
492
+ callback: GObject.SignalCallback<this, ApplicationWindow.SignalSignatures[K]>,
493
+ ): number;
494
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
495
+ emit<K extends keyof ApplicationWindow.SignalSignatures>(
496
+ signal: K,
497
+ ...args: GObject.GjsParameters<ApplicationWindow.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
498
+ ): void;
499
+ emit(signal: string, ...args: any[]): void;
500
+
404
501
  // Static methods
405
502
 
406
503
  /**
@@ -474,6 +571,12 @@ export namespace Amtk {
474
571
  }
475
572
 
476
573
  namespace Factory {
574
+ // Signal signatures
575
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
576
+ 'notify::application': (pspec: GObject.ParamSpec) => void;
577
+ 'notify::default-flags': (pspec: GObject.ParamSpec) => void;
578
+ }
579
+
477
580
  // Constructor properties interface
478
581
 
479
582
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -504,6 +607,15 @@ export namespace Amtk {
504
607
  get defaultFlags(): FactoryFlags;
505
608
  set defaultFlags(val: FactoryFlags);
506
609
 
610
+ /**
611
+ * Compile-time signal type information.
612
+ *
613
+ * This instance property is generated only for TypeScript type checking.
614
+ * It is not defined at runtime and should not be accessed in JS code.
615
+ * @internal
616
+ */
617
+ $signals: Factory.SignalSignatures;
618
+
507
619
  // Constructors
508
620
 
509
621
  constructor(properties?: Partial<Factory.ConstructorProps>, ...args: any[]);
@@ -514,6 +626,24 @@ export namespace Amtk {
514
626
 
515
627
  static new_with_default_application(): Factory;
516
628
 
629
+ // Signals
630
+
631
+ connect<K extends keyof Factory.SignalSignatures>(
632
+ signal: K,
633
+ callback: GObject.SignalCallback<this, Factory.SignalSignatures[K]>,
634
+ ): number;
635
+ connect(signal: string, callback: (...args: any[]) => any): number;
636
+ connect_after<K extends keyof Factory.SignalSignatures>(
637
+ signal: K,
638
+ callback: GObject.SignalCallback<this, Factory.SignalSignatures[K]>,
639
+ ): number;
640
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
641
+ emit<K extends keyof Factory.SignalSignatures>(
642
+ signal: K,
643
+ ...args: GObject.GjsParameters<Factory.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
644
+ ): void;
645
+ emit(signal: string, ...args: any[]): void;
646
+
517
647
  // Methods
518
648
 
519
649
  /**
@@ -678,14 +808,11 @@ export namespace Amtk {
678
808
  }
679
809
 
680
810
  namespace MenuShell {
681
- // Signal callback interfaces
682
-
683
- interface MenuItemDeselected {
684
- (menu_item: Gtk.MenuItem): void;
685
- }
686
-
687
- interface MenuItemSelected {
688
- (menu_item: Gtk.MenuItem): void;
811
+ // Signal signatures
812
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
813
+ 'menu-item-deselected': (arg0: Gtk.MenuItem) => void;
814
+ 'menu-item-selected': (arg0: Gtk.MenuItem) => void;
815
+ 'notify::menu-shell': (pspec: GObject.ParamSpec) => void;
689
816
  }
690
817
 
691
818
  // Constructor properties interface
@@ -710,6 +837,15 @@ export namespace Amtk {
710
837
  */
711
838
  get menuShell(): Gtk.MenuShell;
712
839
 
840
+ /**
841
+ * Compile-time signal type information.
842
+ *
843
+ * This instance property is generated only for TypeScript type checking.
844
+ * It is not defined at runtime and should not be accessed in JS code.
845
+ * @internal
846
+ */
847
+ $signals: MenuShell.SignalSignatures;
848
+
713
849
  // Constructors
714
850
 
715
851
  constructor(properties?: Partial<MenuShell.ConstructorProps>, ...args: any[]);
@@ -718,18 +854,21 @@ export namespace Amtk {
718
854
 
719
855
  // Signals
720
856
 
721
- connect(id: string, callback: (...args: any[]) => any): number;
722
- connect_after(id: string, callback: (...args: any[]) => any): number;
723
- emit(id: string, ...args: any[]): void;
724
- connect(signal: 'menu-item-deselected', callback: (_source: this, menu_item: Gtk.MenuItem) => void): number;
725
- connect_after(
726
- signal: 'menu-item-deselected',
727
- callback: (_source: this, menu_item: Gtk.MenuItem) => void,
857
+ connect<K extends keyof MenuShell.SignalSignatures>(
858
+ signal: K,
859
+ callback: GObject.SignalCallback<this, MenuShell.SignalSignatures[K]>,
860
+ ): number;
861
+ connect(signal: string, callback: (...args: any[]) => any): number;
862
+ connect_after<K extends keyof MenuShell.SignalSignatures>(
863
+ signal: K,
864
+ callback: GObject.SignalCallback<this, MenuShell.SignalSignatures[K]>,
728
865
  ): number;
729
- emit(signal: 'menu-item-deselected', menu_item: Gtk.MenuItem): void;
730
- connect(signal: 'menu-item-selected', callback: (_source: this, menu_item: Gtk.MenuItem) => void): number;
731
- connect_after(signal: 'menu-item-selected', callback: (_source: this, menu_item: Gtk.MenuItem) => void): number;
732
- emit(signal: 'menu-item-selected', menu_item: Gtk.MenuItem): void;
866
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
867
+ emit<K extends keyof MenuShell.SignalSignatures>(
868
+ signal: K,
869
+ ...args: GObject.GjsParameters<MenuShell.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
870
+ ): void;
871
+ emit(signal: string, ...args: any[]): void;
733
872
 
734
873
  // Static methods
735
874
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/amtk-5",
3
- "version": "5.0.0-4.0.0-beta.21",
3
+ "version": "5.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Amtk-5, generated from library version 5.0.0",
5
5
  "type": "module",
6
6
  "module": "amtk-5.js",
@@ -31,20 +31,20 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/atk-1.0": "^2.55.2-4.0.0-beta.21",
35
- "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.21",
36
- "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.21",
37
- "@girs/gdk-3.0": "^3.24.48-4.0.0-beta.21",
38
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.21",
39
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
40
- "@girs/gjs": "^4.0.0-beta.21",
41
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
42
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
43
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21",
44
- "@girs/gtk-3.0": "^3.24.48-4.0.0-beta.21",
45
- "@girs/harfbuzz-0.0": "^9.0.0-4.0.0-beta.21",
46
- "@girs/pango-1.0": "^1.56.0-4.0.0-beta.21",
47
- "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.21"
34
+ "@girs/atk-1.0": "^2.56.2-4.0.0-beta.24",
35
+ "@girs/cairo-1.0": "^1.0.0-4.0.0-beta.24",
36
+ "@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.24",
37
+ "@girs/gdk-3.0": "^3.24.50-4.0.0-beta.24",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.24",
39
+ "@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
40
+ "@girs/gjs": "^4.0.0-beta.24",
41
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
42
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
43
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24",
44
+ "@girs/gtk-3.0": "^3.24.50-4.0.0-beta.24",
45
+ "@girs/harfbuzz-0.0": "^10.4.0-4.0.0-beta.24",
46
+ "@girs/pango-1.0": "^1.56.4-4.0.0-beta.24",
47
+ "@girs/xlib-2.0": "^2.0.0-4.0.0-beta.24"
48
48
  },
49
49
  "devDependencies": {
50
50
  "typescript": "*"