@girs/peas-2 2.0.0-4.0.0-beta.21 → 2.0.0-4.0.0-beta.23

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/package.json +6 -6
  3. package/peas-2.d.ts +134 -15
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/peas-2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.23.
9
9
 
10
10
 
11
11
  ## Install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/peas-2",
3
- "version": "2.0.0-4.0.0-beta.21",
3
+ "version": "2.0.0-4.0.0-beta.23",
4
4
  "description": "GJS TypeScript type definitions for Peas-2, generated from library version 2.0.0",
5
5
  "type": "module",
6
6
  "module": "peas-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.0-4.0.0-beta.23",
35
+ "@girs/gjs": "^4.0.0-beta.23",
36
+ "@girs/glib-2.0": "^2.84.0-4.0.0-beta.23",
37
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.23",
38
+ "@girs/gobject-2.0": "^2.84.0-4.0.0-beta.23"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "*"
package/peas-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';
@@ -530,7 +532,21 @@ export namespace Peas {
530
532
  * @returns the data if found, or %NULL if no such data exists.
531
533
  */
532
534
  get_data(key: string): any | null;
533
- get_property(property_name: string): any;
535
+ /**
536
+ * Gets a property of an object.
537
+ *
538
+ * The value can be:
539
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
540
+ * - a GObject.Value initialized with the expected type of the property
541
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
542
+ *
543
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
544
+ *
545
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
546
+ * @param property_name The name of the property to get
547
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
548
+ */
549
+ get_property(property_name: string, value: GObject.Value | any): any;
534
550
  /**
535
551
  * This function gets back user data pointers stored via
536
552
  * g_object_set_qdata().
@@ -658,7 +674,12 @@ export namespace Peas {
658
674
  * @param data data to associate with that key
659
675
  */
660
676
  set_data(key: string, data?: any | null): void;
661
- set_property(property_name: string, value: any): void;
677
+ /**
678
+ * Sets a property on an object.
679
+ * @param property_name The name of the property to set
680
+ * @param value The value to set the property to
681
+ */
682
+ set_property(property_name: string, value: GObject.Value | any): void;
662
683
  /**
663
684
  * Remove a specified datum from the object's data associations,
664
685
  * without invoking the association's destroy handler.
@@ -808,11 +829,31 @@ export namespace Peas {
808
829
  * @param pspec
809
830
  */
810
831
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
832
+ /**
833
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
834
+ * @param id Handler ID of the handler to be disconnected
835
+ */
811
836
  disconnect(id: number): void;
837
+ /**
838
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
839
+ * @param properties Object containing the properties to set
840
+ */
812
841
  set(properties: { [key: string]: any }): void;
813
- block_signal_handler(id: number): any;
814
- unblock_signal_handler(id: number): any;
815
- stop_emission_by_name(detailedName: string): any;
842
+ /**
843
+ * Blocks a handler of an instance so it will not be called during any signal emissions
844
+ * @param id Handler ID of the handler to be blocked
845
+ */
846
+ block_signal_handler(id: number): void;
847
+ /**
848
+ * Unblocks a handler so it will be called again during any signal emissions
849
+ * @param id Handler ID of the handler to be unblocked
850
+ */
851
+ unblock_signal_handler(id: number): void;
852
+ /**
853
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
854
+ * @param detailedName Name of the signal to stop emission of
855
+ */
856
+ stop_emission_by_name(detailedName: string): void;
816
857
  }
817
858
 
818
859
  namespace ExtensionBase {
@@ -1242,7 +1283,21 @@ export namespace Peas {
1242
1283
  * @returns the data if found, or %NULL if no such data exists.
1243
1284
  */
1244
1285
  get_data(key: string): any | null;
1245
- get_property(property_name: string): any;
1286
+ /**
1287
+ * Gets a property of an object.
1288
+ *
1289
+ * The value can be:
1290
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
1291
+ * - a GObject.Value initialized with the expected type of the property
1292
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1293
+ *
1294
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1295
+ *
1296
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1297
+ * @param property_name The name of the property to get
1298
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
1299
+ */
1300
+ get_property(property_name: string, value: GObject.Value | any): any;
1246
1301
  /**
1247
1302
  * This function gets back user data pointers stored via
1248
1303
  * g_object_set_qdata().
@@ -1370,7 +1425,12 @@ export namespace Peas {
1370
1425
  * @param data data to associate with that key
1371
1426
  */
1372
1427
  set_data(key: string, data?: any | null): void;
1373
- set_property(property_name: string, value: any): void;
1428
+ /**
1429
+ * Sets a property on an object.
1430
+ * @param property_name The name of the property to set
1431
+ * @param value The value to set the property to
1432
+ */
1433
+ set_property(property_name: string, value: GObject.Value | any): void;
1374
1434
  /**
1375
1435
  * Remove a specified datum from the object's data associations,
1376
1436
  * without invoking the association's destroy handler.
@@ -1520,11 +1580,31 @@ export namespace Peas {
1520
1580
  * @param pspec
1521
1581
  */
1522
1582
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1583
+ /**
1584
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
1585
+ * @param id Handler ID of the handler to be disconnected
1586
+ */
1523
1587
  disconnect(id: number): void;
1588
+ /**
1589
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1590
+ * @param properties Object containing the properties to set
1591
+ */
1524
1592
  set(properties: { [key: string]: any }): void;
1525
- block_signal_handler(id: number): any;
1526
- unblock_signal_handler(id: number): any;
1527
- stop_emission_by_name(detailedName: string): any;
1593
+ /**
1594
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1595
+ * @param id Handler ID of the handler to be blocked
1596
+ */
1597
+ block_signal_handler(id: number): void;
1598
+ /**
1599
+ * Unblocks a handler so it will be called again during any signal emissions
1600
+ * @param id Handler ID of the handler to be unblocked
1601
+ */
1602
+ unblock_signal_handler(id: number): void;
1603
+ /**
1604
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1605
+ * @param detailedName Name of the signal to stop emission of
1606
+ */
1607
+ stop_emission_by_name(detailedName: string): void;
1528
1608
  }
1529
1609
 
1530
1610
  namespace ObjectModule {
@@ -1750,7 +1830,21 @@ export namespace Peas {
1750
1830
  * @returns the data if found, or %NULL if no such data exists.
1751
1831
  */
1752
1832
  get_data(key: string): any | null;
1753
- get_property(property_name: string): any;
1833
+ /**
1834
+ * Gets a property of an object.
1835
+ *
1836
+ * The value can be:
1837
+ * - an empty GObject.Value initialized by G_VALUE_INIT, which will be automatically initialized with the expected type of the property (since GLib 2.60)
1838
+ * - a GObject.Value initialized with the expected type of the property
1839
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1840
+ *
1841
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1842
+ *
1843
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1844
+ * @param property_name The name of the property to get
1845
+ * @param value Return location for the property value. Can be an empty GObject.Value initialized by G_VALUE_INIT (auto-initialized with expected type since GLib 2.60), a GObject.Value initialized with the expected property type, or a GObject.Value initialized with a transformable type
1846
+ */
1847
+ get_property(property_name: string, value: GObject.Value | any): any;
1754
1848
  /**
1755
1849
  * This function gets back user data pointers stored via
1756
1850
  * g_object_set_qdata().
@@ -1878,7 +1972,12 @@ export namespace Peas {
1878
1972
  * @param data data to associate with that key
1879
1973
  */
1880
1974
  set_data(key: string, data?: any | null): void;
1881
- set_property(property_name: string, value: any): void;
1975
+ /**
1976
+ * Sets a property on an object.
1977
+ * @param property_name The name of the property to set
1978
+ * @param value The value to set the property to
1979
+ */
1980
+ set_property(property_name: string, value: GObject.Value | any): void;
1882
1981
  /**
1883
1982
  * Remove a specified datum from the object's data associations,
1884
1983
  * without invoking the association's destroy handler.
@@ -2028,11 +2127,31 @@ export namespace Peas {
2028
2127
  * @param pspec
2029
2128
  */
2030
2129
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2130
+ /**
2131
+ * Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to.
2132
+ * @param id Handler ID of the handler to be disconnected
2133
+ */
2031
2134
  disconnect(id: number): void;
2135
+ /**
2136
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
2137
+ * @param properties Object containing the properties to set
2138
+ */
2032
2139
  set(properties: { [key: string]: any }): void;
2033
- block_signal_handler(id: number): any;
2034
- unblock_signal_handler(id: number): any;
2035
- stop_emission_by_name(detailedName: string): any;
2140
+ /**
2141
+ * Blocks a handler of an instance so it will not be called during any signal emissions
2142
+ * @param id Handler ID of the handler to be blocked
2143
+ */
2144
+ block_signal_handler(id: number): void;
2145
+ /**
2146
+ * Unblocks a handler so it will be called again during any signal emissions
2147
+ * @param id Handler ID of the handler to be unblocked
2148
+ */
2149
+ unblock_signal_handler(id: number): void;
2150
+ /**
2151
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
2152
+ * @param detailedName Name of the signal to stop emission of
2153
+ */
2154
+ stop_emission_by_name(detailedName: string): void;
2036
2155
  }
2037
2156
 
2038
2157
  namespace PluginInfo {