@girs/appstreamcompose-1.0 1.0.0-4.0.0-beta.21 → 1.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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/appstreamcompose-1.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.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
@@ -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';
@@ -409,6 +411,9 @@ export namespace AppStreamCompose {
409
411
  BLUR,
410
412
  }
411
413
  namespace Canvas {
414
+ // Signal signatures
415
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
416
+
412
417
  // Constructor properties interface
413
418
 
414
419
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -417,6 +422,15 @@ export namespace AppStreamCompose {
417
422
  class Canvas extends GObject.Object {
418
423
  static $gtype: GObject.GType<Canvas>;
419
424
 
425
+ /**
426
+ * Compile-time signal type information.
427
+ *
428
+ * This instance property is generated only for TypeScript type checking.
429
+ * It is not defined at runtime and should not be accessed in JS code.
430
+ * @internal
431
+ */
432
+ $signals: Canvas.SignalSignatures;
433
+
420
434
  // Constructors
421
435
 
422
436
  constructor(properties?: Partial<Canvas.ConstructorProps>, ...args: any[]);
@@ -425,6 +439,24 @@ export namespace AppStreamCompose {
425
439
 
426
440
  static ['new'](width: number, height: number): Canvas;
427
441
 
442
+ // Signals
443
+
444
+ connect<K extends keyof Canvas.SignalSignatures>(
445
+ signal: K,
446
+ callback: GObject.SignalCallback<this, Canvas.SignalSignatures[K]>,
447
+ ): number;
448
+ connect(signal: string, callback: (...args: any[]) => any): number;
449
+ connect_after<K extends keyof Canvas.SignalSignatures>(
450
+ signal: K,
451
+ callback: GObject.SignalCallback<this, Canvas.SignalSignatures[K]>,
452
+ ): number;
453
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
454
+ emit<K extends keyof Canvas.SignalSignatures>(
455
+ signal: K,
456
+ ...args: GObject.GjsParameters<Canvas.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
457
+ ): void;
458
+ emit(signal: string, ...args: any[]): void;
459
+
428
460
  // Methods
429
461
 
430
462
  /**
@@ -448,6 +480,9 @@ export namespace AppStreamCompose {
448
480
  }
449
481
 
450
482
  namespace Compose {
483
+ // Signal signatures
484
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
485
+
451
486
  // Constructor properties interface
452
487
 
453
488
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -456,6 +491,15 @@ export namespace AppStreamCompose {
456
491
  class Compose extends GObject.Object {
457
492
  static $gtype: GObject.GType<Compose>;
458
493
 
494
+ /**
495
+ * Compile-time signal type information.
496
+ *
497
+ * This instance property is generated only for TypeScript type checking.
498
+ * It is not defined at runtime and should not be accessed in JS code.
499
+ * @internal
500
+ */
501
+ $signals: Compose.SignalSignatures;
502
+
459
503
  // Constructors
460
504
 
461
505
  constructor(properties?: Partial<Compose.ConstructorProps>, ...args: any[]);
@@ -464,6 +508,24 @@ export namespace AppStreamCompose {
464
508
 
465
509
  static ['new'](): Compose;
466
510
 
511
+ // Signals
512
+
513
+ connect<K extends keyof Compose.SignalSignatures>(
514
+ signal: K,
515
+ callback: GObject.SignalCallback<this, Compose.SignalSignatures[K]>,
516
+ ): number;
517
+ connect(signal: string, callback: (...args: any[]) => any): number;
518
+ connect_after<K extends keyof Compose.SignalSignatures>(
519
+ signal: K,
520
+ callback: GObject.SignalCallback<this, Compose.SignalSignatures[K]>,
521
+ ): number;
522
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
523
+ emit<K extends keyof Compose.SignalSignatures>(
524
+ signal: K,
525
+ ...args: GObject.GjsParameters<Compose.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
526
+ ): void;
527
+ emit(signal: string, ...args: any[]): void;
528
+
467
529
  // Methods
468
530
 
469
531
  /**
@@ -683,6 +745,9 @@ export namespace AppStreamCompose {
683
745
  }
684
746
 
685
747
  namespace DirectoryUnit {
748
+ // Signal signatures
749
+ interface SignalSignatures extends Unit.SignalSignatures {}
750
+
686
751
  // Constructor properties interface
687
752
 
688
753
  interface ConstructorProps extends Unit.ConstructorProps {}
@@ -691,6 +756,15 @@ export namespace AppStreamCompose {
691
756
  class DirectoryUnit extends Unit {
692
757
  static $gtype: GObject.GType<DirectoryUnit>;
693
758
 
759
+ /**
760
+ * Compile-time signal type information.
761
+ *
762
+ * This instance property is generated only for TypeScript type checking.
763
+ * It is not defined at runtime and should not be accessed in JS code.
764
+ * @internal
765
+ */
766
+ $signals: DirectoryUnit.SignalSignatures;
767
+
694
768
  // Constructors
695
769
 
696
770
  constructor(properties?: Partial<DirectoryUnit.ConstructorProps>, ...args: any[]);
@@ -702,6 +776,24 @@ export namespace AppStreamCompose {
702
776
 
703
777
  static ['new'](...args: never[]): any;
704
778
 
779
+ // Signals
780
+
781
+ connect<K extends keyof DirectoryUnit.SignalSignatures>(
782
+ signal: K,
783
+ callback: GObject.SignalCallback<this, DirectoryUnit.SignalSignatures[K]>,
784
+ ): number;
785
+ connect(signal: string, callback: (...args: any[]) => any): number;
786
+ connect_after<K extends keyof DirectoryUnit.SignalSignatures>(
787
+ signal: K,
788
+ callback: GObject.SignalCallback<this, DirectoryUnit.SignalSignatures[K]>,
789
+ ): number;
790
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
791
+ emit<K extends keyof DirectoryUnit.SignalSignatures>(
792
+ signal: K,
793
+ ...args: GObject.GjsParameters<DirectoryUnit.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
794
+ ): void;
795
+ emit(signal: string, ...args: any[]): void;
796
+
705
797
  // Methods
706
798
 
707
799
  /**
@@ -716,6 +808,9 @@ export namespace AppStreamCompose {
716
808
  }
717
809
 
718
810
  namespace Hint {
811
+ // Signal signatures
812
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
813
+
719
814
  // Constructor properties interface
720
815
 
721
816
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -724,6 +819,15 @@ export namespace AppStreamCompose {
724
819
  class Hint extends GObject.Object {
725
820
  static $gtype: GObject.GType<Hint>;
726
821
 
822
+ /**
823
+ * Compile-time signal type information.
824
+ *
825
+ * This instance property is generated only for TypeScript type checking.
826
+ * It is not defined at runtime and should not be accessed in JS code.
827
+ * @internal
828
+ */
829
+ $signals: Hint.SignalSignatures;
830
+
727
831
  // Constructors
728
832
 
729
833
  constructor(properties?: Partial<Hint.ConstructorProps>, ...args: any[]);
@@ -734,6 +838,24 @@ export namespace AppStreamCompose {
734
838
 
735
839
  static new_for_tag(tag: string): Hint;
736
840
 
841
+ // Signals
842
+
843
+ connect<K extends keyof Hint.SignalSignatures>(
844
+ signal: K,
845
+ callback: GObject.SignalCallback<this, Hint.SignalSignatures[K]>,
846
+ ): number;
847
+ connect(signal: string, callback: (...args: any[]) => any): number;
848
+ connect_after<K extends keyof Hint.SignalSignatures>(
849
+ signal: K,
850
+ callback: GObject.SignalCallback<this, Hint.SignalSignatures[K]>,
851
+ ): number;
852
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
853
+ emit<K extends keyof Hint.SignalSignatures>(
854
+ signal: K,
855
+ ...args: GObject.GjsParameters<Hint.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
856
+ ): void;
857
+ emit(signal: string, ...args: any[]): void;
858
+
737
859
  // Methods
738
860
 
739
861
  /**
@@ -791,6 +913,9 @@ export namespace AppStreamCompose {
791
913
  }
792
914
 
793
915
  namespace IconPolicy {
916
+ // Signal signatures
917
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
918
+
794
919
  // Constructor properties interface
795
920
 
796
921
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -799,6 +924,15 @@ export namespace AppStreamCompose {
799
924
  class IconPolicy extends GObject.Object {
800
925
  static $gtype: GObject.GType<IconPolicy>;
801
926
 
927
+ /**
928
+ * Compile-time signal type information.
929
+ *
930
+ * This instance property is generated only for TypeScript type checking.
931
+ * It is not defined at runtime and should not be accessed in JS code.
932
+ * @internal
933
+ */
934
+ $signals: IconPolicy.SignalSignatures;
935
+
802
936
  // Constructors
803
937
 
804
938
  constructor(properties?: Partial<IconPolicy.ConstructorProps>, ...args: any[]);
@@ -807,6 +941,24 @@ export namespace AppStreamCompose {
807
941
 
808
942
  static ['new'](): IconPolicy;
809
943
 
944
+ // Signals
945
+
946
+ connect<K extends keyof IconPolicy.SignalSignatures>(
947
+ signal: K,
948
+ callback: GObject.SignalCallback<this, IconPolicy.SignalSignatures[K]>,
949
+ ): number;
950
+ connect(signal: string, callback: (...args: any[]) => any): number;
951
+ connect_after<K extends keyof IconPolicy.SignalSignatures>(
952
+ signal: K,
953
+ callback: GObject.SignalCallback<this, IconPolicy.SignalSignatures[K]>,
954
+ ): number;
955
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
956
+ emit<K extends keyof IconPolicy.SignalSignatures>(
957
+ signal: K,
958
+ ...args: GObject.GjsParameters<IconPolicy.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
959
+ ): void;
960
+ emit(signal: string, ...args: any[]): void;
961
+
810
962
  // Methods
811
963
 
812
964
  /**
@@ -829,6 +981,9 @@ export namespace AppStreamCompose {
829
981
  }
830
982
 
831
983
  namespace Image {
984
+ // Signal signatures
985
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
986
+
832
987
  // Constructor properties interface
833
988
 
834
989
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -837,6 +992,15 @@ export namespace AppStreamCompose {
837
992
  class Image extends GObject.Object {
838
993
  static $gtype: GObject.GType<Image>;
839
994
 
995
+ /**
996
+ * Compile-time signal type information.
997
+ *
998
+ * This instance property is generated only for TypeScript type checking.
999
+ * It is not defined at runtime and should not be accessed in JS code.
1000
+ * @internal
1001
+ */
1002
+ $signals: Image.SignalSignatures;
1003
+
840
1004
  // Constructors
841
1005
 
842
1006
  constructor(properties?: Partial<Image.ConstructorProps>, ...args: any[]);
@@ -855,6 +1019,24 @@ export namespace AppStreamCompose {
855
1019
 
856
1020
  static new_from_file(fname: string, dest_size: number, flags: ImageLoadFlags): Image;
857
1021
 
1022
+ // Signals
1023
+
1024
+ connect<K extends keyof Image.SignalSignatures>(
1025
+ signal: K,
1026
+ callback: GObject.SignalCallback<this, Image.SignalSignatures[K]>,
1027
+ ): number;
1028
+ connect(signal: string, callback: (...args: any[]) => any): number;
1029
+ connect_after<K extends keyof Image.SignalSignatures>(
1030
+ signal: K,
1031
+ callback: GObject.SignalCallback<this, Image.SignalSignatures[K]>,
1032
+ ): number;
1033
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1034
+ emit<K extends keyof Image.SignalSignatures>(
1035
+ signal: K,
1036
+ ...args: GObject.GjsParameters<Image.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1037
+ ): void;
1038
+ emit(signal: string, ...args: any[]): void;
1039
+
858
1040
  // Static methods
859
1041
 
860
1042
  /**
@@ -936,6 +1118,9 @@ export namespace AppStreamCompose {
936
1118
  }
937
1119
 
938
1120
  namespace Result {
1121
+ // Signal signatures
1122
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1123
+
939
1124
  // Constructor properties interface
940
1125
 
941
1126
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -944,6 +1129,15 @@ export namespace AppStreamCompose {
944
1129
  class Result extends GObject.Object {
945
1130
  static $gtype: GObject.GType<Result>;
946
1131
 
1132
+ /**
1133
+ * Compile-time signal type information.
1134
+ *
1135
+ * This instance property is generated only for TypeScript type checking.
1136
+ * It is not defined at runtime and should not be accessed in JS code.
1137
+ * @internal
1138
+ */
1139
+ $signals: Result.SignalSignatures;
1140
+
947
1141
  // Constructors
948
1142
 
949
1143
  constructor(properties?: Partial<Result.ConstructorProps>, ...args: any[]);
@@ -952,6 +1146,24 @@ export namespace AppStreamCompose {
952
1146
 
953
1147
  static ['new'](): Result;
954
1148
 
1149
+ // Signals
1150
+
1151
+ connect<K extends keyof Result.SignalSignatures>(
1152
+ signal: K,
1153
+ callback: GObject.SignalCallback<this, Result.SignalSignatures[K]>,
1154
+ ): number;
1155
+ connect(signal: string, callback: (...args: any[]) => any): number;
1156
+ connect_after<K extends keyof Result.SignalSignatures>(
1157
+ signal: K,
1158
+ callback: GObject.SignalCallback<this, Result.SignalSignatures[K]>,
1159
+ ): number;
1160
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1161
+ emit<K extends keyof Result.SignalSignatures>(
1162
+ signal: K,
1163
+ ...args: GObject.GjsParameters<Result.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1164
+ ): void;
1165
+ emit(signal: string, ...args: any[]): void;
1166
+
955
1167
  // Methods
956
1168
 
957
1169
  /**
@@ -1102,6 +1314,9 @@ export namespace AppStreamCompose {
1102
1314
  }
1103
1315
 
1104
1316
  namespace Unit {
1317
+ // Signal signatures
1318
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1319
+
1105
1320
  // Constructor properties interface
1106
1321
 
1107
1322
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -1110,6 +1325,15 @@ export namespace AppStreamCompose {
1110
1325
  class Unit extends GObject.Object {
1111
1326
  static $gtype: GObject.GType<Unit>;
1112
1327
 
1328
+ /**
1329
+ * Compile-time signal type information.
1330
+ *
1331
+ * This instance property is generated only for TypeScript type checking.
1332
+ * It is not defined at runtime and should not be accessed in JS code.
1333
+ * @internal
1334
+ */
1335
+ $signals: Unit.SignalSignatures;
1336
+
1113
1337
  // Constructors
1114
1338
 
1115
1339
  constructor(properties?: Partial<Unit.ConstructorProps>, ...args: any[]);
@@ -1118,6 +1342,24 @@ export namespace AppStreamCompose {
1118
1342
 
1119
1343
  static ['new'](): Unit;
1120
1344
 
1345
+ // Signals
1346
+
1347
+ connect<K extends keyof Unit.SignalSignatures>(
1348
+ signal: K,
1349
+ callback: GObject.SignalCallback<this, Unit.SignalSignatures[K]>,
1350
+ ): number;
1351
+ connect(signal: string, callback: (...args: any[]) => any): number;
1352
+ connect_after<K extends keyof Unit.SignalSignatures>(
1353
+ signal: K,
1354
+ callback: GObject.SignalCallback<this, Unit.SignalSignatures[K]>,
1355
+ ): number;
1356
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1357
+ emit<K extends keyof Unit.SignalSignatures>(
1358
+ signal: K,
1359
+ ...args: GObject.GjsParameters<Unit.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1360
+ ): void;
1361
+ emit(signal: string, ...args: any[]): void;
1362
+
1121
1363
  // Virtual methods
1122
1364
 
1123
1365
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/appstreamcompose-1.0",
3
- "version": "1.0.0-4.0.0-beta.21",
3
+ "version": "1.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "appstreamcompose-1.0.js",
@@ -31,13 +31,13 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/appstream-1.0": "^1.0.4-4.0.0-beta.21",
35
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.21",
36
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gjs": "^4.0.0-beta.21",
38
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
39
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
40
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/appstream-1.0": "^1.0.4-4.0.0-beta.24",
35
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.24",
36
+ "@girs/gio-2.0": "^2.84.2-4.0.0-beta.24",
37
+ "@girs/gjs": "^4.0.0-beta.24",
38
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
39
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.24",
40
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "*"