@girs/dmap-3.0 3.0.0-4.0.0-beta.21 → 3.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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/dmap-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for DMAP-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for DMAP-3.0, generated from library version 3.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/dmap-3.0.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 Soup from '@girs/soup-2.4';
12
14
  import type Gio from '@girs/gio-2.0';
@@ -713,7 +715,21 @@ export namespace DMAP {
713
715
  * @returns the data if found, or %NULL if no such data exists.
714
716
  */
715
717
  get_data(key: string): any | null;
716
- get_property(property_name: string): any;
718
+ /**
719
+ * Gets a property of an object.
720
+ *
721
+ * The value can be:
722
+ * - 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)
723
+ * - a GObject.Value initialized with the expected type of the property
724
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
725
+ *
726
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
727
+ *
728
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
729
+ * @param property_name The name of the property to get
730
+ * @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
731
+ */
732
+ get_property(property_name: string, value: GObject.Value | any): any;
717
733
  /**
718
734
  * This function gets back user data pointers stored via
719
735
  * g_object_set_qdata().
@@ -841,7 +857,12 @@ export namespace DMAP {
841
857
  * @param data data to associate with that key
842
858
  */
843
859
  set_data(key: string, data?: any | null): void;
844
- set_property(property_name: string, value: any): void;
860
+ /**
861
+ * Sets a property on an object.
862
+ * @param property_name The name of the property to set
863
+ * @param value The value to set the property to
864
+ */
865
+ set_property(property_name: string, value: GObject.Value | any): void;
845
866
  /**
846
867
  * Remove a specified datum from the object's data associations,
847
868
  * without invoking the association's destroy handler.
@@ -991,11 +1012,31 @@ export namespace DMAP {
991
1012
  * @param pspec
992
1013
  */
993
1014
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1015
+ /**
1016
+ * 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.
1017
+ * @param id Handler ID of the handler to be disconnected
1018
+ */
994
1019
  disconnect(id: number): void;
1020
+ /**
1021
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1022
+ * @param properties Object containing the properties to set
1023
+ */
995
1024
  set(properties: { [key: string]: any }): void;
996
- block_signal_handler(id: number): any;
997
- unblock_signal_handler(id: number): any;
998
- stop_emission_by_name(detailedName: string): any;
1025
+ /**
1026
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1027
+ * @param id Handler ID of the handler to be blocked
1028
+ */
1029
+ block_signal_handler(id: number): void;
1030
+ /**
1031
+ * Unblocks a handler so it will be called again during any signal emissions
1032
+ * @param id Handler ID of the handler to be unblocked
1033
+ */
1034
+ unblock_signal_handler(id: number): void;
1035
+ /**
1036
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1037
+ * @param detailedName Name of the signal to stop emission of
1038
+ */
1039
+ stop_emission_by_name(detailedName: string): void;
999
1040
  }
1000
1041
 
1001
1042
  namespace MdnsBrowser {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/dmap-3.0",
3
- "version": "3.0.0-4.0.0-beta.21",
3
+ "version": "3.0.0-4.0.0-beta.23",
4
4
  "description": "GJS TypeScript type definitions for DMAP-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "dmap-3.0.js",
@@ -31,12 +31,12 @@
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",
39
- "@girs/soup-2.4": "^2.74.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
+ "@girs/soup-2.4": "^2.74.3-4.0.0-beta.23"
40
40
  },
41
41
  "devDependencies": {
42
42
  "typescript": "*"