@girs/grl-0.2 0.2.0-4.0.0-beta.21 → 0.2.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/grl-0.2.d.ts +396 -52
  3. package/package.json +6 -6
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/grl-0.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Grl-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Grl-0.2, generated from library version 0.2.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/grl-0.2.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';
@@ -738,6 +740,9 @@ export namespace Grl {
738
740
  FULL,
739
741
  }
740
742
  namespace Caps {
743
+ // Signal signatures
744
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
745
+
741
746
  // Constructor properties interface
742
747
 
743
748
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -746,6 +751,15 @@ export namespace Grl {
746
751
  class Caps extends GObject.Object {
747
752
  static $gtype: GObject.GType<Caps>;
748
753
 
754
+ /**
755
+ * Compile-time signal type information.
756
+ *
757
+ * This instance property is generated only for TypeScript type checking.
758
+ * It is not defined at runtime and should not be accessed in JS code.
759
+ * @internal
760
+ */
761
+ $signals: Caps.SignalSignatures;
762
+
749
763
  // Constructors
750
764
 
751
765
  constructor(properties?: Partial<Caps.ConstructorProps>, ...args: any[]);
@@ -754,6 +768,24 @@ export namespace Grl {
754
768
 
755
769
  static ['new'](): Caps;
756
770
 
771
+ // Signals
772
+
773
+ connect<K extends keyof Caps.SignalSignatures>(
774
+ signal: K,
775
+ callback: GObject.SignalCallback<this, Caps.SignalSignatures[K]>,
776
+ ): number;
777
+ connect(signal: string, callback: (...args: any[]) => any): number;
778
+ connect_after<K extends keyof Caps.SignalSignatures>(
779
+ signal: K,
780
+ callback: GObject.SignalCallback<this, Caps.SignalSignatures[K]>,
781
+ ): number;
782
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
783
+ emit<K extends keyof Caps.SignalSignatures>(
784
+ signal: K,
785
+ ...args: GObject.GjsParameters<Caps.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
786
+ ): void;
787
+ emit(signal: string, ...args: any[]): void;
788
+
757
789
  // Methods
758
790
 
759
791
  get_key_filter(): KeyID[];
@@ -788,6 +820,9 @@ export namespace Grl {
788
820
  }
789
821
 
790
822
  namespace Config {
823
+ // Signal signatures
824
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
825
+
791
826
  // Constructor properties interface
792
827
 
793
828
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -796,6 +831,15 @@ export namespace Grl {
796
831
  class Config extends GObject.Object {
797
832
  static $gtype: GObject.GType<Config>;
798
833
 
834
+ /**
835
+ * Compile-time signal type information.
836
+ *
837
+ * This instance property is generated only for TypeScript type checking.
838
+ * It is not defined at runtime and should not be accessed in JS code.
839
+ * @internal
840
+ */
841
+ $signals: Config.SignalSignatures;
842
+
799
843
  // Constructors
800
844
 
801
845
  constructor(properties?: Partial<Config.ConstructorProps>, ...args: any[]);
@@ -804,6 +848,24 @@ export namespace Grl {
804
848
 
805
849
  static ['new'](plugin: string, source?: string | null): Config;
806
850
 
851
+ // Signals
852
+
853
+ connect<K extends keyof Config.SignalSignatures>(
854
+ signal: K,
855
+ callback: GObject.SignalCallback<this, Config.SignalSignatures[K]>,
856
+ ): number;
857
+ connect(signal: string, callback: (...args: any[]) => any): number;
858
+ connect_after<K extends keyof Config.SignalSignatures>(
859
+ signal: K,
860
+ callback: GObject.SignalCallback<this, Config.SignalSignatures[K]>,
861
+ ): number;
862
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
863
+ emit<K extends keyof Config.SignalSignatures>(
864
+ signal: K,
865
+ ...args: GObject.GjsParameters<Config.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
866
+ ): void;
867
+ emit(signal: string, ...args: any[]): void;
868
+
807
869
  // Methods
808
870
 
809
871
  get_api_key(): string;
@@ -917,6 +979,9 @@ export namespace Grl {
917
979
  }
918
980
 
919
981
  namespace Data {
982
+ // Signal signatures
983
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
984
+
920
985
  // Constructor properties interface
921
986
 
922
987
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -925,6 +990,15 @@ export namespace Grl {
925
990
  class Data extends GObject.Object {
926
991
  static $gtype: GObject.GType<Data>;
927
992
 
993
+ /**
994
+ * Compile-time signal type information.
995
+ *
996
+ * This instance property is generated only for TypeScript type checking.
997
+ * It is not defined at runtime and should not be accessed in JS code.
998
+ * @internal
999
+ */
1000
+ $signals: Data.SignalSignatures;
1001
+
928
1002
  // Constructors
929
1003
 
930
1004
  constructor(properties?: Partial<Data.ConstructorProps>, ...args: any[]);
@@ -933,6 +1007,24 @@ export namespace Grl {
933
1007
 
934
1008
  static ['new'](): Data;
935
1009
 
1010
+ // Signals
1011
+
1012
+ connect<K extends keyof Data.SignalSignatures>(
1013
+ signal: K,
1014
+ callback: GObject.SignalCallback<this, Data.SignalSignatures[K]>,
1015
+ ): number;
1016
+ connect(signal: string, callback: (...args: any[]) => any): number;
1017
+ connect_after<K extends keyof Data.SignalSignatures>(
1018
+ signal: K,
1019
+ callback: GObject.SignalCallback<this, Data.SignalSignatures[K]>,
1020
+ ): number;
1021
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1022
+ emit<K extends keyof Data.SignalSignatures>(
1023
+ signal: K,
1024
+ ...args: GObject.GjsParameters<Data.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1025
+ ): void;
1026
+ emit(signal: string, ...args: any[]): void;
1027
+
936
1028
  // Methods
937
1029
 
938
1030
  /**
@@ -1180,6 +1272,9 @@ export namespace Grl {
1180
1272
  }
1181
1273
 
1182
1274
  namespace Media {
1275
+ // Signal signatures
1276
+ interface SignalSignatures extends Data.SignalSignatures {}
1277
+
1183
1278
  // Constructor properties interface
1184
1279
 
1185
1280
  interface ConstructorProps extends Data.ConstructorProps {}
@@ -1188,6 +1283,15 @@ export namespace Grl {
1188
1283
  class Media extends Data {
1189
1284
  static $gtype: GObject.GType<Media>;
1190
1285
 
1286
+ /**
1287
+ * Compile-time signal type information.
1288
+ *
1289
+ * This instance property is generated only for TypeScript type checking.
1290
+ * It is not defined at runtime and should not be accessed in JS code.
1291
+ * @internal
1292
+ */
1293
+ $signals: Media.SignalSignatures;
1294
+
1191
1295
  // Constructors
1192
1296
 
1193
1297
  constructor(properties?: Partial<Media.ConstructorProps>, ...args: any[]);
@@ -1196,6 +1300,24 @@ export namespace Grl {
1196
1300
 
1197
1301
  static ['new'](): Media;
1198
1302
 
1303
+ // Signals
1304
+
1305
+ connect<K extends keyof Media.SignalSignatures>(
1306
+ signal: K,
1307
+ callback: GObject.SignalCallback<this, Media.SignalSignatures[K]>,
1308
+ ): number;
1309
+ connect(signal: string, callback: (...args: any[]) => any): number;
1310
+ connect_after<K extends keyof Media.SignalSignatures>(
1311
+ signal: K,
1312
+ callback: GObject.SignalCallback<this, Media.SignalSignatures[K]>,
1313
+ ): number;
1314
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1315
+ emit<K extends keyof Media.SignalSignatures>(
1316
+ signal: K,
1317
+ ...args: GObject.GjsParameters<Media.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1318
+ ): void;
1319
+ emit(signal: string, ...args: any[]): void;
1320
+
1199
1321
  // Static methods
1200
1322
 
1201
1323
  /**
@@ -1488,6 +1610,9 @@ export namespace Grl {
1488
1610
  }
1489
1611
 
1490
1612
  namespace MediaAudio {
1613
+ // Signal signatures
1614
+ interface SignalSignatures extends Media.SignalSignatures {}
1615
+
1491
1616
  // Constructor properties interface
1492
1617
 
1493
1618
  interface ConstructorProps extends Media.ConstructorProps {}
@@ -1496,6 +1621,15 @@ export namespace Grl {
1496
1621
  class MediaAudio extends Media {
1497
1622
  static $gtype: GObject.GType<MediaAudio>;
1498
1623
 
1624
+ /**
1625
+ * Compile-time signal type information.
1626
+ *
1627
+ * This instance property is generated only for TypeScript type checking.
1628
+ * It is not defined at runtime and should not be accessed in JS code.
1629
+ * @internal
1630
+ */
1631
+ $signals: MediaAudio.SignalSignatures;
1632
+
1499
1633
  // Constructors
1500
1634
 
1501
1635
  constructor(properties?: Partial<MediaAudio.ConstructorProps>, ...args: any[]);
@@ -1504,6 +1638,24 @@ export namespace Grl {
1504
1638
 
1505
1639
  static ['new'](): MediaAudio;
1506
1640
 
1641
+ // Signals
1642
+
1643
+ connect<K extends keyof MediaAudio.SignalSignatures>(
1644
+ signal: K,
1645
+ callback: GObject.SignalCallback<this, MediaAudio.SignalSignatures[K]>,
1646
+ ): number;
1647
+ connect(signal: string, callback: (...args: any[]) => any): number;
1648
+ connect_after<K extends keyof MediaAudio.SignalSignatures>(
1649
+ signal: K,
1650
+ callback: GObject.SignalCallback<this, MediaAudio.SignalSignatures[K]>,
1651
+ ): number;
1652
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1653
+ emit<K extends keyof MediaAudio.SignalSignatures>(
1654
+ signal: K,
1655
+ ...args: GObject.GjsParameters<MediaAudio.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1656
+ ): void;
1657
+ emit(signal: string, ...args: any[]): void;
1658
+
1507
1659
  // Methods
1508
1660
 
1509
1661
  /**
@@ -1618,6 +1770,9 @@ export namespace Grl {
1618
1770
  }
1619
1771
 
1620
1772
  namespace MediaBox {
1773
+ // Signal signatures
1774
+ interface SignalSignatures extends Media.SignalSignatures {}
1775
+
1621
1776
  // Constructor properties interface
1622
1777
 
1623
1778
  interface ConstructorProps extends Media.ConstructorProps {}
@@ -1626,6 +1781,15 @@ export namespace Grl {
1626
1781
  class MediaBox extends Media {
1627
1782
  static $gtype: GObject.GType<MediaBox>;
1628
1783
 
1784
+ /**
1785
+ * Compile-time signal type information.
1786
+ *
1787
+ * This instance property is generated only for TypeScript type checking.
1788
+ * It is not defined at runtime and should not be accessed in JS code.
1789
+ * @internal
1790
+ */
1791
+ $signals: MediaBox.SignalSignatures;
1792
+
1629
1793
  // Constructors
1630
1794
 
1631
1795
  constructor(properties?: Partial<MediaBox.ConstructorProps>, ...args: any[]);
@@ -1634,6 +1798,24 @@ export namespace Grl {
1634
1798
 
1635
1799
  static ['new'](): MediaBox;
1636
1800
 
1801
+ // Signals
1802
+
1803
+ connect<K extends keyof MediaBox.SignalSignatures>(
1804
+ signal: K,
1805
+ callback: GObject.SignalCallback<this, MediaBox.SignalSignatures[K]>,
1806
+ ): number;
1807
+ connect(signal: string, callback: (...args: any[]) => any): number;
1808
+ connect_after<K extends keyof MediaBox.SignalSignatures>(
1809
+ signal: K,
1810
+ callback: GObject.SignalCallback<this, MediaBox.SignalSignatures[K]>,
1811
+ ): number;
1812
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1813
+ emit<K extends keyof MediaBox.SignalSignatures>(
1814
+ signal: K,
1815
+ ...args: GObject.GjsParameters<MediaBox.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1816
+ ): void;
1817
+ emit(signal: string, ...args: any[]): void;
1818
+
1637
1819
  // Methods
1638
1820
 
1639
1821
  /**
@@ -1650,6 +1832,9 @@ export namespace Grl {
1650
1832
  }
1651
1833
 
1652
1834
  namespace MediaImage {
1835
+ // Signal signatures
1836
+ interface SignalSignatures extends Media.SignalSignatures {}
1837
+
1653
1838
  // Constructor properties interface
1654
1839
 
1655
1840
  interface ConstructorProps extends Media.ConstructorProps {}
@@ -1658,6 +1843,15 @@ export namespace Grl {
1658
1843
  class MediaImage extends Media {
1659
1844
  static $gtype: GObject.GType<MediaImage>;
1660
1845
 
1846
+ /**
1847
+ * Compile-time signal type information.
1848
+ *
1849
+ * This instance property is generated only for TypeScript type checking.
1850
+ * It is not defined at runtime and should not be accessed in JS code.
1851
+ * @internal
1852
+ */
1853
+ $signals: MediaImage.SignalSignatures;
1854
+
1661
1855
  // Constructors
1662
1856
 
1663
1857
  constructor(properties?: Partial<MediaImage.ConstructorProps>, ...args: any[]);
@@ -1666,6 +1860,24 @@ export namespace Grl {
1666
1860
 
1667
1861
  static ['new'](): MediaImage;
1668
1862
 
1863
+ // Signals
1864
+
1865
+ connect<K extends keyof MediaImage.SignalSignatures>(
1866
+ signal: K,
1867
+ callback: GObject.SignalCallback<this, MediaImage.SignalSignatures[K]>,
1868
+ ): number;
1869
+ connect(signal: string, callback: (...args: any[]) => any): number;
1870
+ connect_after<K extends keyof MediaImage.SignalSignatures>(
1871
+ signal: K,
1872
+ callback: GObject.SignalCallback<this, MediaImage.SignalSignatures[K]>,
1873
+ ): number;
1874
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1875
+ emit<K extends keyof MediaImage.SignalSignatures>(
1876
+ signal: K,
1877
+ ...args: GObject.GjsParameters<MediaImage.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1878
+ ): void;
1879
+ emit(signal: string, ...args: any[]): void;
1880
+
1669
1881
  // Methods
1670
1882
 
1671
1883
  /**
@@ -1736,6 +1948,9 @@ export namespace Grl {
1736
1948
  }
1737
1949
 
1738
1950
  namespace MediaVideo {
1951
+ // Signal signatures
1952
+ interface SignalSignatures extends Media.SignalSignatures {}
1953
+
1739
1954
  // Constructor properties interface
1740
1955
 
1741
1956
  interface ConstructorProps extends Media.ConstructorProps {}
@@ -1744,6 +1959,15 @@ export namespace Grl {
1744
1959
  class MediaVideo extends Media {
1745
1960
  static $gtype: GObject.GType<MediaVideo>;
1746
1961
 
1962
+ /**
1963
+ * Compile-time signal type information.
1964
+ *
1965
+ * This instance property is generated only for TypeScript type checking.
1966
+ * It is not defined at runtime and should not be accessed in JS code.
1967
+ * @internal
1968
+ */
1969
+ $signals: MediaVideo.SignalSignatures;
1970
+
1747
1971
  // Constructors
1748
1972
 
1749
1973
  constructor(properties?: Partial<MediaVideo.ConstructorProps>, ...args: any[]);
@@ -1752,6 +1976,24 @@ export namespace Grl {
1752
1976
 
1753
1977
  static ['new'](): MediaVideo;
1754
1978
 
1979
+ // Signals
1980
+
1981
+ connect<K extends keyof MediaVideo.SignalSignatures>(
1982
+ signal: K,
1983
+ callback: GObject.SignalCallback<this, MediaVideo.SignalSignatures[K]>,
1984
+ ): number;
1985
+ connect(signal: string, callback: (...args: any[]) => any): number;
1986
+ connect_after<K extends keyof MediaVideo.SignalSignatures>(
1987
+ signal: K,
1988
+ callback: GObject.SignalCallback<this, MediaVideo.SignalSignatures[K]>,
1989
+ ): number;
1990
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1991
+ emit<K extends keyof MediaVideo.SignalSignatures>(
1992
+ signal: K,
1993
+ ...args: GObject.GjsParameters<MediaVideo.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1994
+ ): void;
1995
+ emit(signal: string, ...args: any[]): void;
1996
+
1755
1997
  // Methods
1756
1998
 
1757
1999
  /**
@@ -1878,6 +2120,9 @@ export namespace Grl {
1878
2120
  }
1879
2121
 
1880
2122
  namespace OperationOptions {
2123
+ // Signal signatures
2124
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
2125
+
1881
2126
  // Constructor properties interface
1882
2127
 
1883
2128
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -1886,6 +2131,15 @@ export namespace Grl {
1886
2131
  class OperationOptions extends GObject.Object {
1887
2132
  static $gtype: GObject.GType<OperationOptions>;
1888
2133
 
2134
+ /**
2135
+ * Compile-time signal type information.
2136
+ *
2137
+ * This instance property is generated only for TypeScript type checking.
2138
+ * It is not defined at runtime and should not be accessed in JS code.
2139
+ * @internal
2140
+ */
2141
+ $signals: OperationOptions.SignalSignatures;
2142
+
1889
2143
  // Constructors
1890
2144
 
1891
2145
  constructor(properties?: Partial<OperationOptions.ConstructorProps>, ...args: any[]);
@@ -1894,6 +2148,24 @@ export namespace Grl {
1894
2148
 
1895
2149
  static ['new'](caps?: Caps | null): OperationOptions;
1896
2150
 
2151
+ // Signals
2152
+
2153
+ connect<K extends keyof OperationOptions.SignalSignatures>(
2154
+ signal: K,
2155
+ callback: GObject.SignalCallback<this, OperationOptions.SignalSignatures[K]>,
2156
+ ): number;
2157
+ connect(signal: string, callback: (...args: any[]) => any): number;
2158
+ connect_after<K extends keyof OperationOptions.SignalSignatures>(
2159
+ signal: K,
2160
+ callback: GObject.SignalCallback<this, OperationOptions.SignalSignatures[K]>,
2161
+ ): number;
2162
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2163
+ emit<K extends keyof OperationOptions.SignalSignatures>(
2164
+ signal: K,
2165
+ ...args: GObject.GjsParameters<OperationOptions.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2166
+ ): void;
2167
+ emit(signal: string, ...args: any[]): void;
2168
+
1897
2169
  // Methods
1898
2170
 
1899
2171
  copy(): OperationOptions;
@@ -2000,6 +2272,11 @@ export namespace Grl {
2000
2272
  }
2001
2273
 
2002
2274
  namespace Plugin {
2275
+ // Signal signatures
2276
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
2277
+ 'notify::loaded': (pspec: GObject.ParamSpec) => void;
2278
+ }
2279
+
2003
2280
  // Constructor properties interface
2004
2281
 
2005
2282
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -2017,12 +2294,39 @@ export namespace Grl {
2017
2294
  */
2018
2295
  get loaded(): boolean;
2019
2296
 
2297
+ /**
2298
+ * Compile-time signal type information.
2299
+ *
2300
+ * This instance property is generated only for TypeScript type checking.
2301
+ * It is not defined at runtime and should not be accessed in JS code.
2302
+ * @internal
2303
+ */
2304
+ $signals: Plugin.SignalSignatures;
2305
+
2020
2306
  // Constructors
2021
2307
 
2022
2308
  constructor(properties?: Partial<Plugin.ConstructorProps>, ...args: any[]);
2023
2309
 
2024
2310
  _init(...args: any[]): void;
2025
2311
 
2312
+ // Signals
2313
+
2314
+ connect<K extends keyof Plugin.SignalSignatures>(
2315
+ signal: K,
2316
+ callback: GObject.SignalCallback<this, Plugin.SignalSignatures[K]>,
2317
+ ): number;
2318
+ connect(signal: string, callback: (...args: any[]) => any): number;
2319
+ connect_after<K extends keyof Plugin.SignalSignatures>(
2320
+ signal: K,
2321
+ callback: GObject.SignalCallback<this, Plugin.SignalSignatures[K]>,
2322
+ ): number;
2323
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2324
+ emit<K extends keyof Plugin.SignalSignatures>(
2325
+ signal: K,
2326
+ ...args: GObject.GjsParameters<Plugin.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2327
+ ): void;
2328
+ emit(signal: string, ...args: any[]): void;
2329
+
2026
2330
  // Methods
2027
2331
 
2028
2332
  /**
@@ -2101,18 +2405,11 @@ export namespace Grl {
2101
2405
  }
2102
2406
 
2103
2407
  namespace Registry {
2104
- // Signal callback interfaces
2105
-
2106
- interface MetadataKeyAdded {
2107
- (key: string): void;
2108
- }
2109
-
2110
- interface SourceAdded {
2111
- (source: Source): void;
2112
- }
2113
-
2114
- interface SourceRemoved {
2115
- (source: Source): void;
2408
+ // Signal signatures
2409
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
2410
+ 'metadata-key-added': (arg0: string) => void;
2411
+ 'source-added': (arg0: Source) => void;
2412
+ 'source-removed': (arg0: Source) => void;
2116
2413
  }
2117
2414
 
2118
2415
  // Constructor properties interface
@@ -2123,6 +2420,15 @@ export namespace Grl {
2123
2420
  class Registry extends GObject.Object {
2124
2421
  static $gtype: GObject.GType<Registry>;
2125
2422
 
2423
+ /**
2424
+ * Compile-time signal type information.
2425
+ *
2426
+ * This instance property is generated only for TypeScript type checking.
2427
+ * It is not defined at runtime and should not be accessed in JS code.
2428
+ * @internal
2429
+ */
2430
+ $signals: Registry.SignalSignatures;
2431
+
2126
2432
  // Constructors
2127
2433
 
2128
2434
  constructor(properties?: Partial<Registry.ConstructorProps>, ...args: any[]);
@@ -2131,18 +2437,21 @@ export namespace Grl {
2131
2437
 
2132
2438
  // Signals
2133
2439
 
2134
- connect(id: string, callback: (...args: any[]) => any): number;
2135
- connect_after(id: string, callback: (...args: any[]) => any): number;
2136
- emit(id: string, ...args: any[]): void;
2137
- connect(signal: 'metadata-key-added', callback: (_source: this, key: string) => void): number;
2138
- connect_after(signal: 'metadata-key-added', callback: (_source: this, key: string) => void): number;
2139
- emit(signal: 'metadata-key-added', key: string): void;
2140
- connect(signal: 'source-added', callback: (_source: this, source: Source) => void): number;
2141
- connect_after(signal: 'source-added', callback: (_source: this, source: Source) => void): number;
2142
- emit(signal: 'source-added', source: Source): void;
2143
- connect(signal: 'source-removed', callback: (_source: this, source: Source) => void): number;
2144
- connect_after(signal: 'source-removed', callback: (_source: this, source: Source) => void): number;
2145
- emit(signal: 'source-removed', source: Source): void;
2440
+ connect<K extends keyof Registry.SignalSignatures>(
2441
+ signal: K,
2442
+ callback: GObject.SignalCallback<this, Registry.SignalSignatures[K]>,
2443
+ ): number;
2444
+ connect(signal: string, callback: (...args: any[]) => any): number;
2445
+ connect_after<K extends keyof Registry.SignalSignatures>(
2446
+ signal: K,
2447
+ callback: GObject.SignalCallback<this, Registry.SignalSignatures[K]>,
2448
+ ): number;
2449
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2450
+ emit<K extends keyof Registry.SignalSignatures>(
2451
+ signal: K,
2452
+ ...args: GObject.GjsParameters<Registry.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2453
+ ): void;
2454
+ emit(signal: string, ...args: any[]): void;
2146
2455
 
2147
2456
  // Static methods
2148
2457
 
@@ -2341,6 +2650,9 @@ export namespace Grl {
2341
2650
  }
2342
2651
 
2343
2652
  namespace RelatedKeys {
2653
+ // Signal signatures
2654
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
2655
+
2344
2656
  // Constructor properties interface
2345
2657
 
2346
2658
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -2349,6 +2661,15 @@ export namespace Grl {
2349
2661
  class RelatedKeys extends GObject.Object {
2350
2662
  static $gtype: GObject.GType<RelatedKeys>;
2351
2663
 
2664
+ /**
2665
+ * Compile-time signal type information.
2666
+ *
2667
+ * This instance property is generated only for TypeScript type checking.
2668
+ * It is not defined at runtime and should not be accessed in JS code.
2669
+ * @internal
2670
+ */
2671
+ $signals: RelatedKeys.SignalSignatures;
2672
+
2352
2673
  // Constructors
2353
2674
 
2354
2675
  constructor(properties?: Partial<RelatedKeys.ConstructorProps>, ...args: any[]);
@@ -2357,6 +2678,24 @@ export namespace Grl {
2357
2678
 
2358
2679
  static ['new'](): RelatedKeys;
2359
2680
 
2681
+ // Signals
2682
+
2683
+ connect<K extends keyof RelatedKeys.SignalSignatures>(
2684
+ signal: K,
2685
+ callback: GObject.SignalCallback<this, RelatedKeys.SignalSignatures[K]>,
2686
+ ): number;
2687
+ connect(signal: string, callback: (...args: any[]) => any): number;
2688
+ connect_after<K extends keyof RelatedKeys.SignalSignatures>(
2689
+ signal: K,
2690
+ callback: GObject.SignalCallback<this, RelatedKeys.SignalSignatures[K]>,
2691
+ ): number;
2692
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2693
+ emit<K extends keyof RelatedKeys.SignalSignatures>(
2694
+ signal: K,
2695
+ ...args: GObject.GjsParameters<RelatedKeys.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2696
+ ): void;
2697
+ emit(signal: string, ...args: any[]): void;
2698
+
2360
2699
  // Methods
2361
2700
 
2362
2701
  /**
@@ -2504,10 +2843,18 @@ export namespace Grl {
2504
2843
  }
2505
2844
 
2506
2845
  namespace Source {
2507
- // Signal callback interfaces
2508
-
2509
- interface ContentChanged {
2510
- (changed_medias: Media[], change_type: SourceChangeType, location_unknown: boolean): void;
2846
+ // Signal signatures
2847
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
2848
+ 'content-changed': (arg0: Media[], arg1: SourceChangeType, arg2: boolean) => void;
2849
+ 'notify::auto-split-threshold': (pspec: GObject.ParamSpec) => void;
2850
+ 'notify::plugin': (pspec: GObject.ParamSpec) => void;
2851
+ 'notify::rank': (pspec: GObject.ParamSpec) => void;
2852
+ 'notify::source-desc': (pspec: GObject.ParamSpec) => void;
2853
+ 'notify::source-icon': (pspec: GObject.ParamSpec) => void;
2854
+ 'notify::source-id': (pspec: GObject.ParamSpec) => void;
2855
+ 'notify::source-name': (pspec: GObject.ParamSpec) => void;
2856
+ 'notify::source-tags': (pspec: GObject.ParamSpec) => void;
2857
+ 'notify::supported-media': (pspec: GObject.ParamSpec) => void;
2511
2858
  }
2512
2859
 
2513
2860
  // Constructor properties interface
@@ -2728,6 +3075,15 @@ export namespace Grl {
2728
3075
  get supportedMedia(): MediaType;
2729
3076
  set supportedMedia(val: MediaType);
2730
3077
 
3078
+ /**
3079
+ * Compile-time signal type information.
3080
+ *
3081
+ * This instance property is generated only for TypeScript type checking.
3082
+ * It is not defined at runtime and should not be accessed in JS code.
3083
+ * @internal
3084
+ */
3085
+ $signals: Source.SignalSignatures;
3086
+
2731
3087
  // Constructors
2732
3088
 
2733
3089
  constructor(properties?: Partial<Source.ConstructorProps>, ...args: any[]);
@@ -2736,33 +3092,21 @@ export namespace Grl {
2736
3092
 
2737
3093
  // Signals
2738
3094
 
2739
- connect(id: string, callback: (...args: any[]) => any): number;
2740
- connect_after(id: string, callback: (...args: any[]) => any): number;
2741
- emit(id: string, ...args: any[]): void;
2742
- connect(
2743
- signal: 'content-changed',
2744
- callback: (
2745
- _source: this,
2746
- changed_medias: Media[],
2747
- change_type: SourceChangeType,
2748
- location_unknown: boolean,
2749
- ) => void,
3095
+ connect<K extends keyof Source.SignalSignatures>(
3096
+ signal: K,
3097
+ callback: GObject.SignalCallback<this, Source.SignalSignatures[K]>,
2750
3098
  ): number;
2751
- connect_after(
2752
- signal: 'content-changed',
2753
- callback: (
2754
- _source: this,
2755
- changed_medias: Media[],
2756
- change_type: SourceChangeType,
2757
- location_unknown: boolean,
2758
- ) => void,
3099
+ connect(signal: string, callback: (...args: any[]) => any): number;
3100
+ connect_after<K extends keyof Source.SignalSignatures>(
3101
+ signal: K,
3102
+ callback: GObject.SignalCallback<this, Source.SignalSignatures[K]>,
2759
3103
  ): number;
2760
- emit(
2761
- signal: 'content-changed',
2762
- changed_medias: Media[],
2763
- change_type: SourceChangeType,
2764
- location_unknown: boolean,
3104
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3105
+ emit<K extends keyof Source.SignalSignatures>(
3106
+ signal: K,
3107
+ ...args: GObject.GjsParameters<Source.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2765
3108
  ): void;
3109
+ emit(signal: string, ...args: any[]): void;
2766
3110
 
2767
3111
  // Virtual methods
2768
3112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/grl-0.2",
3
- "version": "0.2.0-4.0.0-beta.21",
3
+ "version": "0.2.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Grl-0.2, generated from library version 0.2.0",
5
5
  "type": "module",
6
6
  "module": "grl-0.2.js",
@@ -31,11 +31,11 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gio-2.0": "^2.83.3-4.0.0-beta.21",
35
- "@girs/gjs": "^4.0.0-beta.21",
36
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
37
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.21",
38
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
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": "*"