@girs/gobject-2.0 2.80.3-4.0.0-beta.14 → 2.82.0-4.0.0-beta.16

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/gobject-2.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GObject-2.0, generated from library version 2.80.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.14.
8
+ GJS TypeScript type definitions for GObject-2.0, generated from library version 2.82.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.16.
9
9
 
10
10
 
11
11
  ## Install
package/gobject-2.0.d.ts CHANGED
@@ -94,6 +94,7 @@ export namespace GObject {
94
94
  export let TYPE_PARAM: GType<unknown>;
95
95
  export let TYPE_INTERFACE: GType<unknown>;
96
96
  export let TYPE_OBJECT: GType<object>;
97
+ export let TYPE_JSOBJECT: GType<Object>;
97
98
  export let TYPE_VARIANT: GType<GLib.Variant>;
98
99
  export let TYPE_INT: GType<number>;
99
100
  export let TYPE_UINT: GType<number>;
@@ -1506,11 +1507,14 @@ export namespace GObject {
1506
1507
  *
1507
1508
  * If `closure` is a floating reference (see g_closure_sink()), this function
1508
1509
  * takes ownership of `closure`.
1510
+ *
1511
+ * This function cannot fail. If the given signal doesn’t exist, a critical
1512
+ * warning is emitted.
1509
1513
  * @param instance the instance to connect to.
1510
1514
  * @param detailed_signal a string of the form "signal-name::detail".
1511
1515
  * @param closure the closure to connect.
1512
1516
  * @param after whether the handler should be called before or after the default handler of the signal.
1513
- * @returns the handler ID (always greater than 0 for successful connections)
1517
+ * @returns the handler ID (always greater than 0)
1514
1518
  */
1515
1519
  function signal_connect_closure(
1516
1520
  instance: Object,
@@ -1523,12 +1527,15 @@ export namespace GObject {
1523
1527
  *
1524
1528
  * If `closure` is a floating reference (see g_closure_sink()), this function
1525
1529
  * takes ownership of `closure`.
1530
+ *
1531
+ * This function cannot fail. If the given signal doesn’t exist, a critical
1532
+ * warning is emitted.
1526
1533
  * @param instance the instance to connect to.
1527
1534
  * @param signal_id the id of the signal.
1528
1535
  * @param detail the detail.
1529
1536
  * @param closure the closure to connect.
1530
1537
  * @param after whether the handler should be called before or after the default handler of the signal.
1531
- * @returns the handler ID (always greater than 0 for successful connections)
1538
+ * @returns the handler ID (always greater than 0)
1532
1539
  */
1533
1540
  function signal_connect_closure_by_id(
1534
1541
  instance: Object,
@@ -1742,9 +1749,8 @@ export namespace GObject {
1742
1749
  * Validate a signal name. This can be useful for dynamically-generated signals
1743
1750
  * which need to be validated at run-time before actually trying to create them.
1744
1751
  *
1745
- * See [canonical parameter names][canonical-parameter-names] for details of
1746
- * the rules for valid names. The rules for signal names are the same as those
1747
- * for property names.
1752
+ * See [func`GObject`.signal_new] for details of the rules for valid names.
1753
+ * The rules for signal names are the same as those for property names.
1748
1754
  * @param name the canonical name of the signal
1749
1755
  * @returns %TRUE if @name is a valid signal name, %FALSE otherwise.
1750
1756
  */
@@ -3806,8 +3812,8 @@ export namespace GObject {
3806
3812
  * dynamically-generated properties which need to be validated at run-time
3807
3813
  * before actually trying to create them.
3808
3814
  *
3809
- * See [canonical parameter names][canonical-parameter-names] for details of
3810
- * the rules for valid names.
3815
+ * See [canonical parameter names][class`GObject`.ParamSpec#parameter-names]
3816
+ * for details of the rules for valid names.
3811
3817
  * @param name the canonical name of the property
3812
3818
  */
3813
3819
  static is_valid_name(name: string): boolean;
@@ -6298,7 +6304,7 @@ export namespace GObject {
6298
6304
  */
6299
6305
  copy(): ValueArray;
6300
6306
  /**
6301
- * Return a pointer to the value at `index_` containd in `value_array`.
6307
+ * Return a pointer to the value at `index_` contained in `value_array`.
6302
6308
  * @param index_ index of the value of interest
6303
6309
  * @returns pointer to a value at @index_ in @value_array
6304
6310
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@girs/gobject-2.0",
3
- "version": "2.80.3-4.0.0-beta.14",
4
- "description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.80.3",
3
+ "version": "2.82.0-4.0.0-beta.16",
4
+ "description": "GJS TypeScript type definitions for GObject-2.0, generated from library version 2.82.0",
5
5
  "type": "module",
6
6
  "module": "gobject-2.0.js",
7
7
  "main": "gobject-2.0.js",
@@ -31,8 +31,8 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "^4.0.0-beta.14",
35
- "@girs/glib-2.0": "^2.80.3-4.0.0-beta.14"
34
+ "@girs/gjs": "^4.0.0-beta.16",
35
+ "@girs/glib-2.0": "^2.82.0-4.0.0-beta.16"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "*"