@girs/amtk-4 4.0.0-4.0.0-beta.21 → 4.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-4.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-4)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Amtk-4, generated from library version 4.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-4, generated from library version 4.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-4.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';
@@ -219,6 +221,9 @@ export namespace Amtk {
219
221
  IGNORE_ACCELS_FOR_APP,
220
222
  }
221
223
  namespace ActionInfoCentralStore {
224
+ // Signal signatures
225
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
226
+
222
227
  // Constructor properties interface
223
228
 
224
229
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -227,12 +232,41 @@ export namespace Amtk {
227
232
  class ActionInfoCentralStore extends GObject.Object {
228
233
  static $gtype: GObject.GType<ActionInfoCentralStore>;
229
234
 
235
+ /**
236
+ * Compile-time signal type information.
237
+ *
238
+ * This instance property is generated only for TypeScript type checking.
239
+ * It is not defined at runtime and should not be accessed in JS code.
240
+ * @internal
241
+ */
242
+ $signals: ActionInfoCentralStore.SignalSignatures;
243
+
230
244
  // Constructors
231
245
 
232
246
  constructor(properties?: Partial<ActionInfoCentralStore.ConstructorProps>, ...args: any[]);
233
247
 
234
248
  _init(...args: any[]): void;
235
249
 
250
+ // Signals
251
+
252
+ connect<K extends keyof ActionInfoCentralStore.SignalSignatures>(
253
+ signal: K,
254
+ callback: GObject.SignalCallback<this, ActionInfoCentralStore.SignalSignatures[K]>,
255
+ ): number;
256
+ connect(signal: string, callback: (...args: any[]) => any): number;
257
+ connect_after<K extends keyof ActionInfoCentralStore.SignalSignatures>(
258
+ signal: K,
259
+ callback: GObject.SignalCallback<this, ActionInfoCentralStore.SignalSignatures[K]>,
260
+ ): number;
261
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
262
+ emit<K extends keyof ActionInfoCentralStore.SignalSignatures>(
263
+ signal: K,
264
+ ...args: GObject.GjsParameters<ActionInfoCentralStore.SignalSignatures[K]> extends [any, ...infer Q]
265
+ ? Q
266
+ : never
267
+ ): void;
268
+ emit(signal: string, ...args: any[]): void;
269
+
236
270
  // Static methods
237
271
 
238
272
  static get_singleton(): ActionInfoCentralStore;
@@ -243,6 +277,9 @@ export namespace Amtk {
243
277
  }
244
278
 
245
279
  namespace ActionInfoStore {
280
+ // Signal signatures
281
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
282
+
246
283
  // Constructor properties interface
247
284
 
248
285
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -251,6 +288,15 @@ export namespace Amtk {
251
288
  class ActionInfoStore extends GObject.Object {
252
289
  static $gtype: GObject.GType<ActionInfoStore>;
253
290
 
291
+ /**
292
+ * Compile-time signal type information.
293
+ *
294
+ * This instance property is generated only for TypeScript type checking.
295
+ * It is not defined at runtime and should not be accessed in JS code.
296
+ * @internal
297
+ */
298
+ $signals: ActionInfoStore.SignalSignatures;
299
+
254
300
  // Constructors
255
301
 
256
302
  constructor(properties?: Partial<ActionInfoStore.ConstructorProps>, ...args: any[]);
@@ -259,6 +305,24 @@ export namespace Amtk {
259
305
 
260
306
  static ['new'](): ActionInfoStore;
261
307
 
308
+ // Signals
309
+
310
+ connect<K extends keyof ActionInfoStore.SignalSignatures>(
311
+ signal: K,
312
+ callback: GObject.SignalCallback<this, ActionInfoStore.SignalSignatures[K]>,
313
+ ): number;
314
+ connect(signal: string, callback: (...args: any[]) => any): number;
315
+ connect_after<K extends keyof ActionInfoStore.SignalSignatures>(
316
+ signal: K,
317
+ callback: GObject.SignalCallback<this, ActionInfoStore.SignalSignatures[K]>,
318
+ ): number;
319
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
320
+ emit<K extends keyof ActionInfoStore.SignalSignatures>(
321
+ signal: K,
322
+ ...args: GObject.GjsParameters<ActionInfoStore.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
323
+ ): void;
324
+ emit(signal: string, ...args: any[]): void;
325
+
262
326
  // Methods
263
327
 
264
328
  /**
@@ -294,6 +358,12 @@ export namespace Amtk {
294
358
  }
295
359
 
296
360
  namespace ApplicationWindow {
361
+ // Signal signatures
362
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
363
+ 'notify::application-window': (pspec: GObject.ParamSpec) => void;
364
+ 'notify::statusbar': (pspec: GObject.ParamSpec) => void;
365
+ }
366
+
297
367
  // Constructor properties interface
298
368
 
299
369
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -322,12 +392,39 @@ export namespace Amtk {
322
392
  get statusbar(): Gtk.Statusbar;
323
393
  set statusbar(val: Gtk.Statusbar);
324
394
 
395
+ /**
396
+ * Compile-time signal type information.
397
+ *
398
+ * This instance property is generated only for TypeScript type checking.
399
+ * It is not defined at runtime and should not be accessed in JS code.
400
+ * @internal
401
+ */
402
+ $signals: ApplicationWindow.SignalSignatures;
403
+
325
404
  // Constructors
326
405
 
327
406
  constructor(properties?: Partial<ApplicationWindow.ConstructorProps>, ...args: any[]);
328
407
 
329
408
  _init(...args: any[]): void;
330
409
 
410
+ // Signals
411
+
412
+ connect<K extends keyof ApplicationWindow.SignalSignatures>(
413
+ signal: K,
414
+ callback: GObject.SignalCallback<this, ApplicationWindow.SignalSignatures[K]>,
415
+ ): number;
416
+ connect(signal: string, callback: (...args: any[]) => any): number;
417
+ connect_after<K extends keyof ApplicationWindow.SignalSignatures>(
418
+ signal: K,
419
+ callback: GObject.SignalCallback<this, ApplicationWindow.SignalSignatures[K]>,
420
+ ): number;
421
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
422
+ emit<K extends keyof ApplicationWindow.SignalSignatures>(
423
+ signal: K,
424
+ ...args: GObject.GjsParameters<ApplicationWindow.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
425
+ ): void;
426
+ emit(signal: string, ...args: any[]): void;
427
+
331
428
  // Static methods
332
429
 
333
430
  /**
@@ -395,6 +492,12 @@ export namespace Amtk {
395
492
  }
396
493
 
397
494
  namespace Factory {
495
+ // Signal signatures
496
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
497
+ 'notify::application': (pspec: GObject.ParamSpec) => void;
498
+ 'notify::default-flags': (pspec: GObject.ParamSpec) => void;
499
+ }
500
+
398
501
  // Constructor properties interface
399
502
 
400
503
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -425,6 +528,15 @@ export namespace Amtk {
425
528
  get defaultFlags(): FactoryFlags;
426
529
  set defaultFlags(val: FactoryFlags);
427
530
 
531
+ /**
532
+ * Compile-time signal type information.
533
+ *
534
+ * This instance property is generated only for TypeScript type checking.
535
+ * It is not defined at runtime and should not be accessed in JS code.
536
+ * @internal
537
+ */
538
+ $signals: Factory.SignalSignatures;
539
+
428
540
  // Constructors
429
541
 
430
542
  constructor(properties?: Partial<Factory.ConstructorProps>, ...args: any[]);
@@ -435,6 +547,24 @@ export namespace Amtk {
435
547
 
436
548
  static new_with_default_application(): Factory;
437
549
 
550
+ // Signals
551
+
552
+ connect<K extends keyof Factory.SignalSignatures>(
553
+ signal: K,
554
+ callback: GObject.SignalCallback<this, Factory.SignalSignatures[K]>,
555
+ ): number;
556
+ connect(signal: string, callback: (...args: any[]) => any): number;
557
+ connect_after<K extends keyof Factory.SignalSignatures>(
558
+ signal: K,
559
+ callback: GObject.SignalCallback<this, Factory.SignalSignatures[K]>,
560
+ ): number;
561
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
562
+ emit<K extends keyof Factory.SignalSignatures>(
563
+ signal: K,
564
+ ...args: GObject.GjsParameters<Factory.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
565
+ ): void;
566
+ emit(signal: string, ...args: any[]): void;
567
+
438
568
  // Methods
439
569
 
440
570
  /**
@@ -522,14 +652,11 @@ export namespace Amtk {
522
652
  }
523
653
 
524
654
  namespace MenuShell {
525
- // Signal callback interfaces
526
-
527
- interface MenuItemDeselected {
528
- (menu_item: Gtk.MenuItem): void;
529
- }
530
-
531
- interface MenuItemSelected {
532
- (menu_item: Gtk.MenuItem): void;
655
+ // Signal signatures
656
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
657
+ 'menu-item-deselected': (arg0: Gtk.MenuItem) => void;
658
+ 'menu-item-selected': (arg0: Gtk.MenuItem) => void;
659
+ 'notify::menu-shell': (pspec: GObject.ParamSpec) => void;
533
660
  }
534
661
 
535
662
  // Constructor properties interface
@@ -554,6 +681,15 @@ export namespace Amtk {
554
681
  */
555
682
  get menuShell(): Gtk.MenuShell;
556
683
 
684
+ /**
685
+ * Compile-time signal type information.
686
+ *
687
+ * This instance property is generated only for TypeScript type checking.
688
+ * It is not defined at runtime and should not be accessed in JS code.
689
+ * @internal
690
+ */
691
+ $signals: MenuShell.SignalSignatures;
692
+
557
693
  // Constructors
558
694
 
559
695
  constructor(properties?: Partial<MenuShell.ConstructorProps>, ...args: any[]);
@@ -562,18 +698,21 @@ export namespace Amtk {
562
698
 
563
699
  // Signals
564
700
 
565
- connect(id: string, callback: (...args: any[]) => any): number;
566
- connect_after(id: string, callback: (...args: any[]) => any): number;
567
- emit(id: string, ...args: any[]): void;
568
- connect(signal: 'menu-item-deselected', callback: (_source: this, menu_item: Gtk.MenuItem) => void): number;
569
- connect_after(
570
- signal: 'menu-item-deselected',
571
- callback: (_source: this, menu_item: Gtk.MenuItem) => void,
701
+ connect<K extends keyof MenuShell.SignalSignatures>(
702
+ signal: K,
703
+ callback: GObject.SignalCallback<this, MenuShell.SignalSignatures[K]>,
704
+ ): number;
705
+ connect(signal: string, callback: (...args: any[]) => any): number;
706
+ connect_after<K extends keyof MenuShell.SignalSignatures>(
707
+ signal: K,
708
+ callback: GObject.SignalCallback<this, MenuShell.SignalSignatures[K]>,
572
709
  ): number;
573
- emit(signal: 'menu-item-deselected', menu_item: Gtk.MenuItem): void;
574
- connect(signal: 'menu-item-selected', callback: (_source: this, menu_item: Gtk.MenuItem) => void): number;
575
- connect_after(signal: 'menu-item-selected', callback: (_source: this, menu_item: Gtk.MenuItem) => void): number;
576
- emit(signal: 'menu-item-selected', menu_item: Gtk.MenuItem): void;
710
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
711
+ emit<K extends keyof MenuShell.SignalSignatures>(
712
+ signal: K,
713
+ ...args: GObject.GjsParameters<MenuShell.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
714
+ ): void;
715
+ emit(signal: string, ...args: any[]): void;
577
716
 
578
717
  // Static methods
579
718
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/amtk-4",
3
- "version": "4.0.0-4.0.0-beta.21",
3
+ "version": "4.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Amtk-4, generated from library version 4.0.0",
5
5
  "type": "module",
6
6
  "module": "amtk-4.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": "*"