@girs/cloudproviders-0.3 0.3.0-4.0.0-beta.21 → 0.3.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/cloudproviders-0.3)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for CloudProviders-0.3, generated from library version 0.3.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for CloudProviders-0.3, generated from library version 0.3.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';
@@ -57,6 +59,16 @@ export namespace CloudProviders {
57
59
  */
58
60
  function dbus_provider_override_properties(klass: typeof GObject.Object, property_id_begin: number): number;
59
61
  namespace Account {
62
+ // Signal signatures
63
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
64
+ 'notify::action-group': (pspec: GObject.ParamSpec) => void;
65
+ 'notify::icon': (pspec: GObject.ParamSpec) => void;
66
+ 'notify::menu-model': (pspec: GObject.ParamSpec) => void;
67
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
68
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
69
+ 'notify::status-details': (pspec: GObject.ParamSpec) => void;
70
+ }
71
+
60
72
  // Constructor properties interface
61
73
 
62
74
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -93,6 +105,15 @@ export namespace CloudProviders {
93
105
  get status_details(): string;
94
106
  get statusDetails(): string;
95
107
 
108
+ /**
109
+ * Compile-time signal type information.
110
+ *
111
+ * This instance property is generated only for TypeScript type checking.
112
+ * It is not defined at runtime and should not be accessed in JS code.
113
+ * @internal
114
+ */
115
+ $signals: Account.SignalSignatures;
116
+
96
117
  // Constructors
97
118
 
98
119
  constructor(properties?: Partial<Account.ConstructorProps>, ...args: any[]);
@@ -101,6 +122,24 @@ export namespace CloudProviders {
101
122
 
102
123
  static ['new'](proxy: Gio.DBusProxy): Account;
103
124
 
125
+ // Signals
126
+
127
+ connect<K extends keyof Account.SignalSignatures>(
128
+ signal: K,
129
+ callback: GObject.SignalCallback<this, Account.SignalSignatures[K]>,
130
+ ): number;
131
+ connect(signal: string, callback: (...args: any[]) => any): number;
132
+ connect_after<K extends keyof Account.SignalSignatures>(
133
+ signal: K,
134
+ callback: GObject.SignalCallback<this, Account.SignalSignatures[K]>,
135
+ ): number;
136
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
137
+ emit<K extends keyof Account.SignalSignatures>(
138
+ signal: K,
139
+ ...args: GObject.GjsParameters<Account.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
140
+ ): void;
141
+ emit(signal: string, ...args: any[]): void;
142
+
104
143
  // Methods
105
144
 
106
145
  /**
@@ -142,6 +181,18 @@ export namespace CloudProviders {
142
181
  }
143
182
 
144
183
  namespace AccountExporter {
184
+ // Signal signatures
185
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
186
+ 'notify::action-group': (pspec: GObject.ParamSpec) => void;
187
+ 'notify::bus-name': (pspec: GObject.ParamSpec) => void;
188
+ 'notify::icon': (pspec: GObject.ParamSpec) => void;
189
+ 'notify::menu-model': (pspec: GObject.ParamSpec) => void;
190
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
191
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
192
+ 'notify::provider': (pspec: GObject.ParamSpec) => void;
193
+ 'notify::status-details': (pspec: GObject.ParamSpec) => void;
194
+ }
195
+
145
196
  // Constructor properties interface
146
197
 
147
198
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -187,6 +238,15 @@ export namespace CloudProviders {
187
238
  get statusDetails(): string;
188
239
  set statusDetails(val: string);
189
240
 
241
+ /**
242
+ * Compile-time signal type information.
243
+ *
244
+ * This instance property is generated only for TypeScript type checking.
245
+ * It is not defined at runtime and should not be accessed in JS code.
246
+ * @internal
247
+ */
248
+ $signals: AccountExporter.SignalSignatures;
249
+
190
250
  // Constructors
191
251
 
192
252
  constructor(properties?: Partial<AccountExporter.ConstructorProps>, ...args: any[]);
@@ -195,6 +255,24 @@ export namespace CloudProviders {
195
255
 
196
256
  static ['new'](provider: ProviderExporter, bus_name: string): AccountExporter;
197
257
 
258
+ // Signals
259
+
260
+ connect<K extends keyof AccountExporter.SignalSignatures>(
261
+ signal: K,
262
+ callback: GObject.SignalCallback<this, AccountExporter.SignalSignatures[K]>,
263
+ ): number;
264
+ connect(signal: string, callback: (...args: any[]) => any): number;
265
+ connect_after<K extends keyof AccountExporter.SignalSignatures>(
266
+ signal: K,
267
+ callback: GObject.SignalCallback<this, AccountExporter.SignalSignatures[K]>,
268
+ ): number;
269
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
270
+ emit<K extends keyof AccountExporter.SignalSignatures>(
271
+ signal: K,
272
+ ...args: GObject.GjsParameters<AccountExporter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
273
+ ): void;
274
+ emit(signal: string, ...args: any[]): void;
275
+
198
276
  // Methods
199
277
 
200
278
  /**
@@ -219,10 +297,9 @@ export namespace CloudProviders {
219
297
  }
220
298
 
221
299
  namespace Collector {
222
- // Signal callback interfaces
223
-
224
- interface ProvidersChanged {
225
- (): void;
300
+ // Signal signatures
301
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
302
+ 'providers-changed': () => void;
226
303
  }
227
304
 
228
305
  // Constructor properties interface
@@ -239,6 +316,15 @@ export namespace CloudProviders {
239
316
  class Collector extends GObject.Object {
240
317
  static $gtype: GObject.GType<Collector>;
241
318
 
319
+ /**
320
+ * Compile-time signal type information.
321
+ *
322
+ * This instance property is generated only for TypeScript type checking.
323
+ * It is not defined at runtime and should not be accessed in JS code.
324
+ * @internal
325
+ */
326
+ $signals: Collector.SignalSignatures;
327
+
242
328
  // Constructors
243
329
 
244
330
  constructor(properties?: Partial<Collector.ConstructorProps>, ...args: any[]);
@@ -247,12 +333,21 @@ export namespace CloudProviders {
247
333
 
248
334
  // Signals
249
335
 
250
- connect(id: string, callback: (...args: any[]) => any): number;
251
- connect_after(id: string, callback: (...args: any[]) => any): number;
252
- emit(id: string, ...args: any[]): void;
253
- connect(signal: 'providers-changed', callback: (_source: this) => void): number;
254
- connect_after(signal: 'providers-changed', callback: (_source: this) => void): number;
255
- emit(signal: 'providers-changed'): void;
336
+ connect<K extends keyof Collector.SignalSignatures>(
337
+ signal: K,
338
+ callback: GObject.SignalCallback<this, Collector.SignalSignatures[K]>,
339
+ ): number;
340
+ connect(signal: string, callback: (...args: any[]) => any): number;
341
+ connect_after<K extends keyof Collector.SignalSignatures>(
342
+ signal: K,
343
+ callback: GObject.SignalCallback<this, Collector.SignalSignatures[K]>,
344
+ ): number;
345
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
346
+ emit<K extends keyof Collector.SignalSignatures>(
347
+ signal: K,
348
+ ...args: GObject.GjsParameters<Collector.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
349
+ ): void;
350
+ emit(signal: string, ...args: any[]): void;
256
351
 
257
352
  // Static methods
258
353
 
@@ -268,6 +363,24 @@ export namespace CloudProviders {
268
363
  }
269
364
 
270
365
  namespace DbusAccountProxy {
366
+ // Signal signatures
367
+ interface SignalSignatures extends Gio.DBusProxy.SignalSignatures {
368
+ 'notify::g-bus-type': (pspec: GObject.ParamSpec) => void;
369
+ 'notify::g-connection': (pspec: GObject.ParamSpec) => void;
370
+ 'notify::g-default-timeout': (pspec: GObject.ParamSpec) => void;
371
+ 'notify::g-flags': (pspec: GObject.ParamSpec) => void;
372
+ 'notify::g-interface-info': (pspec: GObject.ParamSpec) => void;
373
+ 'notify::g-interface-name': (pspec: GObject.ParamSpec) => void;
374
+ 'notify::g-name': (pspec: GObject.ParamSpec) => void;
375
+ 'notify::g-name-owner': (pspec: GObject.ParamSpec) => void;
376
+ 'notify::g-object-path': (pspec: GObject.ParamSpec) => void;
377
+ 'notify::icon': (pspec: GObject.ParamSpec) => void;
378
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
379
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
380
+ 'notify::status': (pspec: GObject.ParamSpec) => void;
381
+ 'notify::status-details': (pspec: GObject.ParamSpec) => void;
382
+ }
383
+
271
384
  // Constructor properties interface
272
385
 
273
386
  interface ConstructorProps
@@ -287,6 +400,15 @@ export namespace CloudProviders {
287
400
  {
288
401
  static $gtype: GObject.GType<DbusAccountProxy>;
289
402
 
403
+ /**
404
+ * Compile-time signal type information.
405
+ *
406
+ * This instance property is generated only for TypeScript type checking.
407
+ * It is not defined at runtime and should not be accessed in JS code.
408
+ * @internal
409
+ */
410
+ $signals: DbusAccountProxy.SignalSignatures;
411
+
290
412
  // Constructors
291
413
 
292
414
  constructor(properties?: Partial<DbusAccountProxy.ConstructorProps>, ...args: any[]);
@@ -322,6 +444,24 @@ export namespace CloudProviders {
322
444
 
323
445
  static new_sync(...args: never[]): any;
324
446
 
447
+ // Signals
448
+
449
+ connect<K extends keyof DbusAccountProxy.SignalSignatures>(
450
+ signal: K,
451
+ callback: GObject.SignalCallback<this, DbusAccountProxy.SignalSignatures[K]>,
452
+ ): number;
453
+ connect(signal: string, callback: (...args: any[]) => any): number;
454
+ connect_after<K extends keyof DbusAccountProxy.SignalSignatures>(
455
+ signal: K,
456
+ callback: GObject.SignalCallback<this, DbusAccountProxy.SignalSignatures[K]>,
457
+ ): number;
458
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
459
+ emit<K extends keyof DbusAccountProxy.SignalSignatures>(
460
+ signal: K,
461
+ ...args: GObject.GjsParameters<DbusAccountProxy.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
462
+ ): void;
463
+ emit(signal: string, ...args: any[]): void;
464
+
325
465
  // Static methods
326
466
 
327
467
  /**
@@ -672,7 +812,7 @@ export namespace CloudProviders {
672
812
  * If the object is not initialized, or initialization returns with an
673
813
  * error, then all operations on the object except g_object_ref() and
674
814
  * g_object_unref() are considered to be invalid, and have undefined
675
- * behaviour. See the [introduction][ginitable] for more details.
815
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
676
816
  *
677
817
  * Callers should not assume that a class which implements #GInitable can be
678
818
  * initialized multiple times, unless the class explicitly documents itself as
@@ -715,7 +855,7 @@ export namespace CloudProviders {
715
855
  * If the object is not initialized, or initialization returns with an
716
856
  * error, then all operations on the object except g_object_ref() and
717
857
  * g_object_unref() are considered to be invalid, and have undefined
718
- * behaviour. See the [introduction][ginitable] for more details.
858
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
719
859
  *
720
860
  * Callers should not assume that a class which implements #GInitable can be
721
861
  * initialized multiple times, unless the class explicitly documents itself as
@@ -855,7 +995,21 @@ export namespace CloudProviders {
855
995
  * @returns the data if found, or %NULL if no such data exists.
856
996
  */
857
997
  get_data(key: string): any | null;
858
- get_property(property_name: string): any;
998
+ /**
999
+ * Gets a property of an object.
1000
+ *
1001
+ * The value can be:
1002
+ * - 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)
1003
+ * - a GObject.Value initialized with the expected type of the property
1004
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1005
+ *
1006
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1007
+ *
1008
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1009
+ * @param property_name The name of the property to get
1010
+ * @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
1011
+ */
1012
+ get_property(property_name: string, value: GObject.Value | any): any;
859
1013
  /**
860
1014
  * This function gets back user data pointers stored via
861
1015
  * g_object_set_qdata().
@@ -983,7 +1137,12 @@ export namespace CloudProviders {
983
1137
  * @param data data to associate with that key
984
1138
  */
985
1139
  set_data(key: string, data?: any | null): void;
986
- set_property(property_name: string, value: any): void;
1140
+ /**
1141
+ * Sets a property on an object.
1142
+ * @param property_name The name of the property to set
1143
+ * @param value The value to set the property to
1144
+ */
1145
+ set_property(property_name: string, value: GObject.Value | any): void;
987
1146
  /**
988
1147
  * Remove a specified datum from the object's data associations,
989
1148
  * without invoking the association's destroy handler.
@@ -1133,14 +1292,44 @@ export namespace CloudProviders {
1133
1292
  * @param pspec
1134
1293
  */
1135
1294
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1295
+ /**
1296
+ * 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.
1297
+ * @param id Handler ID of the handler to be disconnected
1298
+ */
1136
1299
  disconnect(id: number): void;
1300
+ /**
1301
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1302
+ * @param properties Object containing the properties to set
1303
+ */
1137
1304
  set(properties: { [key: string]: any }): void;
1138
- block_signal_handler(id: number): any;
1139
- unblock_signal_handler(id: number): any;
1140
- stop_emission_by_name(detailedName: string): any;
1305
+ /**
1306
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1307
+ * @param id Handler ID of the handler to be blocked
1308
+ */
1309
+ block_signal_handler(id: number): void;
1310
+ /**
1311
+ * Unblocks a handler so it will be called again during any signal emissions
1312
+ * @param id Handler ID of the handler to be unblocked
1313
+ */
1314
+ unblock_signal_handler(id: number): void;
1315
+ /**
1316
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1317
+ * @param detailedName Name of the signal to stop emission of
1318
+ */
1319
+ stop_emission_by_name(detailedName: string): void;
1141
1320
  }
1142
1321
 
1143
1322
  namespace DbusAccountSkeleton {
1323
+ // Signal signatures
1324
+ interface SignalSignatures extends Gio.DBusInterfaceSkeleton.SignalSignatures {
1325
+ 'notify::g-flags': (pspec: GObject.ParamSpec) => void;
1326
+ 'notify::icon': (pspec: GObject.ParamSpec) => void;
1327
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
1328
+ 'notify::path': (pspec: GObject.ParamSpec) => void;
1329
+ 'notify::status': (pspec: GObject.ParamSpec) => void;
1330
+ 'notify::status-details': (pspec: GObject.ParamSpec) => void;
1331
+ }
1332
+
1144
1333
  // Constructor properties interface
1145
1334
 
1146
1335
  interface ConstructorProps
@@ -1155,6 +1344,15 @@ export namespace CloudProviders {
1155
1344
  class DbusAccountSkeleton extends Gio.DBusInterfaceSkeleton implements DbusAccount, Gio.DBusInterface {
1156
1345
  static $gtype: GObject.GType<DbusAccountSkeleton>;
1157
1346
 
1347
+ /**
1348
+ * Compile-time signal type information.
1349
+ *
1350
+ * This instance property is generated only for TypeScript type checking.
1351
+ * It is not defined at runtime and should not be accessed in JS code.
1352
+ * @internal
1353
+ */
1354
+ $signals: DbusAccountSkeleton.SignalSignatures;
1355
+
1158
1356
  // Constructors
1159
1357
 
1160
1358
  constructor(properties?: Partial<DbusAccountSkeleton.ConstructorProps>, ...args: any[]);
@@ -1163,6 +1361,26 @@ export namespace CloudProviders {
1163
1361
 
1164
1362
  static ['new'](): DbusAccountSkeleton;
1165
1363
 
1364
+ // Signals
1365
+
1366
+ connect<K extends keyof DbusAccountSkeleton.SignalSignatures>(
1367
+ signal: K,
1368
+ callback: GObject.SignalCallback<this, DbusAccountSkeleton.SignalSignatures[K]>,
1369
+ ): number;
1370
+ connect(signal: string, callback: (...args: any[]) => any): number;
1371
+ connect_after<K extends keyof DbusAccountSkeleton.SignalSignatures>(
1372
+ signal: K,
1373
+ callback: GObject.SignalCallback<this, DbusAccountSkeleton.SignalSignatures[K]>,
1374
+ ): number;
1375
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1376
+ emit<K extends keyof DbusAccountSkeleton.SignalSignatures>(
1377
+ signal: K,
1378
+ ...args: GObject.GjsParameters<DbusAccountSkeleton.SignalSignatures[K]> extends [any, ...infer Q]
1379
+ ? Q
1380
+ : never
1381
+ ): void;
1382
+ emit(signal: string, ...args: any[]): void;
1383
+
1166
1384
  // Inherited properties
1167
1385
  /**
1168
1386
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-CloudProviders-Account.Icon">"Icon"</link>.
@@ -1359,7 +1577,21 @@ export namespace CloudProviders {
1359
1577
  * @returns the data if found, or %NULL if no such data exists.
1360
1578
  */
1361
1579
  get_data(key: string): any | null;
1362
- get_property(property_name: string): any;
1580
+ /**
1581
+ * Gets a property of an object.
1582
+ *
1583
+ * The value can be:
1584
+ * - 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)
1585
+ * - a GObject.Value initialized with the expected type of the property
1586
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
1587
+ *
1588
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
1589
+ *
1590
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
1591
+ * @param property_name The name of the property to get
1592
+ * @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
1593
+ */
1594
+ get_property(property_name: string, value: GObject.Value | any): any;
1363
1595
  /**
1364
1596
  * This function gets back user data pointers stored via
1365
1597
  * g_object_set_qdata().
@@ -1487,7 +1719,12 @@ export namespace CloudProviders {
1487
1719
  * @param data data to associate with that key
1488
1720
  */
1489
1721
  set_data(key: string, data?: any | null): void;
1490
- set_property(property_name: string, value: any): void;
1722
+ /**
1723
+ * Sets a property on an object.
1724
+ * @param property_name The name of the property to set
1725
+ * @param value The value to set the property to
1726
+ */
1727
+ set_property(property_name: string, value: GObject.Value | any): void;
1491
1728
  /**
1492
1729
  * Remove a specified datum from the object's data associations,
1493
1730
  * without invoking the association's destroy handler.
@@ -1637,14 +1874,47 @@ export namespace CloudProviders {
1637
1874
  * @param pspec
1638
1875
  */
1639
1876
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
1877
+ /**
1878
+ * 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.
1879
+ * @param id Handler ID of the handler to be disconnected
1880
+ */
1640
1881
  disconnect(id: number): void;
1882
+ /**
1883
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
1884
+ * @param properties Object containing the properties to set
1885
+ */
1641
1886
  set(properties: { [key: string]: any }): void;
1642
- block_signal_handler(id: number): any;
1643
- unblock_signal_handler(id: number): any;
1644
- stop_emission_by_name(detailedName: string): any;
1887
+ /**
1888
+ * Blocks a handler of an instance so it will not be called during any signal emissions
1889
+ * @param id Handler ID of the handler to be blocked
1890
+ */
1891
+ block_signal_handler(id: number): void;
1892
+ /**
1893
+ * Unblocks a handler so it will be called again during any signal emissions
1894
+ * @param id Handler ID of the handler to be unblocked
1895
+ */
1896
+ unblock_signal_handler(id: number): void;
1897
+ /**
1898
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
1899
+ * @param detailedName Name of the signal to stop emission of
1900
+ */
1901
+ stop_emission_by_name(detailedName: string): void;
1645
1902
  }
1646
1903
 
1647
1904
  namespace DbusObjectManagerClient {
1905
+ // Signal signatures
1906
+ interface SignalSignatures extends Gio.DBusObjectManagerClient.SignalSignatures {
1907
+ 'notify::bus-type': (pspec: GObject.ParamSpec) => void;
1908
+ 'notify::connection': (pspec: GObject.ParamSpec) => void;
1909
+ 'notify::flags': (pspec: GObject.ParamSpec) => void;
1910
+ 'notify::get-proxy-type-destroy-notify': (pspec: GObject.ParamSpec) => void;
1911
+ 'notify::get-proxy-type-func': (pspec: GObject.ParamSpec) => void;
1912
+ 'notify::get-proxy-type-user-data': (pspec: GObject.ParamSpec) => void;
1913
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
1914
+ 'notify::name-owner': (pspec: GObject.ParamSpec) => void;
1915
+ 'notify::object-path': (pspec: GObject.ParamSpec) => void;
1916
+ }
1917
+
1648
1918
  // Constructor properties interface
1649
1919
 
1650
1920
  interface ConstructorProps
@@ -1663,6 +1933,15 @@ export namespace CloudProviders {
1663
1933
  {
1664
1934
  static $gtype: GObject.GType<DbusObjectManagerClient>;
1665
1935
 
1936
+ /**
1937
+ * Compile-time signal type information.
1938
+ *
1939
+ * This instance property is generated only for TypeScript type checking.
1940
+ * It is not defined at runtime and should not be accessed in JS code.
1941
+ * @internal
1942
+ */
1943
+ $signals: DbusObjectManagerClient.SignalSignatures;
1944
+
1666
1945
  // Constructors
1667
1946
 
1668
1947
  constructor(properties?: Partial<DbusObjectManagerClient.ConstructorProps>, ...args: any[]);
@@ -1698,6 +1977,26 @@ export namespace CloudProviders {
1698
1977
 
1699
1978
  static new_sync(...args: never[]): any;
1700
1979
 
1980
+ // Signals
1981
+
1982
+ connect<K extends keyof DbusObjectManagerClient.SignalSignatures>(
1983
+ signal: K,
1984
+ callback: GObject.SignalCallback<this, DbusObjectManagerClient.SignalSignatures[K]>,
1985
+ ): number;
1986
+ connect(signal: string, callback: (...args: any[]) => any): number;
1987
+ connect_after<K extends keyof DbusObjectManagerClient.SignalSignatures>(
1988
+ signal: K,
1989
+ callback: GObject.SignalCallback<this, DbusObjectManagerClient.SignalSignatures[K]>,
1990
+ ): number;
1991
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1992
+ emit<K extends keyof DbusObjectManagerClient.SignalSignatures>(
1993
+ signal: K,
1994
+ ...args: GObject.GjsParameters<DbusObjectManagerClient.SignalSignatures[K]> extends [any, ...infer Q]
1995
+ ? Q
1996
+ : never
1997
+ ): void;
1998
+ emit(signal: string, ...args: any[]): void;
1999
+
1701
2000
  // Static methods
1702
2001
 
1703
2002
  /**
@@ -2049,7 +2348,7 @@ export namespace CloudProviders {
2049
2348
  * If the object is not initialized, or initialization returns with an
2050
2349
  * error, then all operations on the object except g_object_ref() and
2051
2350
  * g_object_unref() are considered to be invalid, and have undefined
2052
- * behaviour. See the [introduction][ginitable] for more details.
2351
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
2053
2352
  *
2054
2353
  * Callers should not assume that a class which implements #GInitable can be
2055
2354
  * initialized multiple times, unless the class explicitly documents itself as
@@ -2092,7 +2391,7 @@ export namespace CloudProviders {
2092
2391
  * If the object is not initialized, or initialization returns with an
2093
2392
  * error, then all operations on the object except g_object_ref() and
2094
2393
  * g_object_unref() are considered to be invalid, and have undefined
2095
- * behaviour. See the [introduction][ginitable] for more details.
2394
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
2096
2395
  *
2097
2396
  * Callers should not assume that a class which implements #GInitable can be
2098
2397
  * initialized multiple times, unless the class explicitly documents itself as
@@ -2232,7 +2531,21 @@ export namespace CloudProviders {
2232
2531
  * @returns the data if found, or %NULL if no such data exists.
2233
2532
  */
2234
2533
  get_data(key: string): any | null;
2235
- get_property(property_name: string): any;
2534
+ /**
2535
+ * Gets a property of an object.
2536
+ *
2537
+ * The value can be:
2538
+ * - 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)
2539
+ * - a GObject.Value initialized with the expected type of the property
2540
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
2541
+ *
2542
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
2543
+ *
2544
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
2545
+ * @param property_name The name of the property to get
2546
+ * @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
2547
+ */
2548
+ get_property(property_name: string, value: GObject.Value | any): any;
2236
2549
  /**
2237
2550
  * This function gets back user data pointers stored via
2238
2551
  * g_object_set_qdata().
@@ -2360,7 +2673,12 @@ export namespace CloudProviders {
2360
2673
  * @param data data to associate with that key
2361
2674
  */
2362
2675
  set_data(key: string, data?: any | null): void;
2363
- set_property(property_name: string, value: any): void;
2676
+ /**
2677
+ * Sets a property on an object.
2678
+ * @param property_name The name of the property to set
2679
+ * @param value The value to set the property to
2680
+ */
2681
+ set_property(property_name: string, value: GObject.Value | any): void;
2364
2682
  /**
2365
2683
  * Remove a specified datum from the object's data associations,
2366
2684
  * without invoking the association's destroy handler.
@@ -2510,14 +2828,42 @@ export namespace CloudProviders {
2510
2828
  * @param pspec
2511
2829
  */
2512
2830
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
2831
+ /**
2832
+ * 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.
2833
+ * @param id Handler ID of the handler to be disconnected
2834
+ */
2513
2835
  disconnect(id: number): void;
2836
+ /**
2837
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
2838
+ * @param properties Object containing the properties to set
2839
+ */
2514
2840
  set(properties: { [key: string]: any }): void;
2515
- block_signal_handler(id: number): any;
2516
- unblock_signal_handler(id: number): any;
2517
- stop_emission_by_name(detailedName: string): any;
2841
+ /**
2842
+ * Blocks a handler of an instance so it will not be called during any signal emissions
2843
+ * @param id Handler ID of the handler to be blocked
2844
+ */
2845
+ block_signal_handler(id: number): void;
2846
+ /**
2847
+ * Unblocks a handler so it will be called again during any signal emissions
2848
+ * @param id Handler ID of the handler to be unblocked
2849
+ */
2850
+ unblock_signal_handler(id: number): void;
2851
+ /**
2852
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
2853
+ * @param detailedName Name of the signal to stop emission of
2854
+ */
2855
+ stop_emission_by_name(detailedName: string): void;
2518
2856
  }
2519
2857
 
2520
2858
  namespace DbusObjectProxy {
2859
+ // Signal signatures
2860
+ interface SignalSignatures extends Gio.DBusObjectProxy.SignalSignatures {
2861
+ 'notify::g-connection': (pspec: GObject.ParamSpec) => void;
2862
+ 'notify::g-object-path': (pspec: GObject.ParamSpec) => void;
2863
+ 'notify::account': (pspec: GObject.ParamSpec) => void;
2864
+ 'notify::provider': (pspec: GObject.ParamSpec) => void;
2865
+ }
2866
+
2521
2867
  // Constructor properties interface
2522
2868
 
2523
2869
  interface ConstructorProps
@@ -2532,6 +2878,15 @@ export namespace CloudProviders {
2532
2878
  class DbusObjectProxy extends Gio.DBusObjectProxy implements DbusObject, Gio.DBusObject {
2533
2879
  static $gtype: GObject.GType<DbusObjectProxy>;
2534
2880
 
2881
+ /**
2882
+ * Compile-time signal type information.
2883
+ *
2884
+ * This instance property is generated only for TypeScript type checking.
2885
+ * It is not defined at runtime and should not be accessed in JS code.
2886
+ * @internal
2887
+ */
2888
+ $signals: DbusObjectProxy.SignalSignatures;
2889
+
2535
2890
  // Constructors
2536
2891
 
2537
2892
  constructor(properties?: Partial<DbusObjectProxy.ConstructorProps>, ...args: any[]);
@@ -2540,6 +2895,24 @@ export namespace CloudProviders {
2540
2895
 
2541
2896
  static ['new'](connection: Gio.DBusConnection, object_path: string): DbusObjectProxy;
2542
2897
 
2898
+ // Signals
2899
+
2900
+ connect<K extends keyof DbusObjectProxy.SignalSignatures>(
2901
+ signal: K,
2902
+ callback: GObject.SignalCallback<this, DbusObjectProxy.SignalSignatures[K]>,
2903
+ ): number;
2904
+ connect(signal: string, callback: (...args: any[]) => any): number;
2905
+ connect_after<K extends keyof DbusObjectProxy.SignalSignatures>(
2906
+ signal: K,
2907
+ callback: GObject.SignalCallback<this, DbusObjectProxy.SignalSignatures[K]>,
2908
+ ): number;
2909
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
2910
+ emit<K extends keyof DbusObjectProxy.SignalSignatures>(
2911
+ signal: K,
2912
+ ...args: GObject.GjsParameters<DbusObjectProxy.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
2913
+ ): void;
2914
+ emit(signal: string, ...args: any[]): void;
2915
+
2543
2916
  // Inherited properties
2544
2917
  /**
2545
2918
  * The #CloudProvidersDbusAccount instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-CloudProviders-Account.top_of_page">org.freedesktop.CloudProviders.Account</link>, if any.
@@ -2725,7 +3098,21 @@ export namespace CloudProviders {
2725
3098
  * @returns the data if found, or %NULL if no such data exists.
2726
3099
  */
2727
3100
  get_data(key: string): any | null;
2728
- get_property(property_name: string): any;
3101
+ /**
3102
+ * Gets a property of an object.
3103
+ *
3104
+ * The value can be:
3105
+ * - 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)
3106
+ * - a GObject.Value initialized with the expected type of the property
3107
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
3108
+ *
3109
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
3110
+ *
3111
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
3112
+ * @param property_name The name of the property to get
3113
+ * @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
3114
+ */
3115
+ get_property(property_name: string, value: GObject.Value | any): any;
2729
3116
  /**
2730
3117
  * This function gets back user data pointers stored via
2731
3118
  * g_object_set_qdata().
@@ -2853,7 +3240,12 @@ export namespace CloudProviders {
2853
3240
  * @param data data to associate with that key
2854
3241
  */
2855
3242
  set_data(key: string, data?: any | null): void;
2856
- set_property(property_name: string, value: any): void;
3243
+ /**
3244
+ * Sets a property on an object.
3245
+ * @param property_name The name of the property to set
3246
+ * @param value The value to set the property to
3247
+ */
3248
+ set_property(property_name: string, value: GObject.Value | any): void;
2857
3249
  /**
2858
3250
  * Remove a specified datum from the object's data associations,
2859
3251
  * without invoking the association's destroy handler.
@@ -3003,14 +3395,41 @@ export namespace CloudProviders {
3003
3395
  * @param pspec
3004
3396
  */
3005
3397
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
3398
+ /**
3399
+ * 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.
3400
+ * @param id Handler ID of the handler to be disconnected
3401
+ */
3006
3402
  disconnect(id: number): void;
3403
+ /**
3404
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
3405
+ * @param properties Object containing the properties to set
3406
+ */
3007
3407
  set(properties: { [key: string]: any }): void;
3008
- block_signal_handler(id: number): any;
3009
- unblock_signal_handler(id: number): any;
3010
- stop_emission_by_name(detailedName: string): any;
3408
+ /**
3409
+ * Blocks a handler of an instance so it will not be called during any signal emissions
3410
+ * @param id Handler ID of the handler to be blocked
3411
+ */
3412
+ block_signal_handler(id: number): void;
3413
+ /**
3414
+ * Unblocks a handler so it will be called again during any signal emissions
3415
+ * @param id Handler ID of the handler to be unblocked
3416
+ */
3417
+ unblock_signal_handler(id: number): void;
3418
+ /**
3419
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
3420
+ * @param detailedName Name of the signal to stop emission of
3421
+ */
3422
+ stop_emission_by_name(detailedName: string): void;
3011
3423
  }
3012
3424
 
3013
3425
  namespace DbusObjectSkeleton {
3426
+ // Signal signatures
3427
+ interface SignalSignatures extends Gio.DBusObjectSkeleton.SignalSignatures {
3428
+ 'notify::g-object-path': (pspec: GObject.ParamSpec) => void;
3429
+ 'notify::account': (pspec: GObject.ParamSpec) => void;
3430
+ 'notify::provider': (pspec: GObject.ParamSpec) => void;
3431
+ }
3432
+
3014
3433
  // Constructor properties interface
3015
3434
 
3016
3435
  interface ConstructorProps
@@ -3025,6 +3444,15 @@ export namespace CloudProviders {
3025
3444
  class DbusObjectSkeleton extends Gio.DBusObjectSkeleton implements DbusObject, Gio.DBusObject {
3026
3445
  static $gtype: GObject.GType<DbusObjectSkeleton>;
3027
3446
 
3447
+ /**
3448
+ * Compile-time signal type information.
3449
+ *
3450
+ * This instance property is generated only for TypeScript type checking.
3451
+ * It is not defined at runtime and should not be accessed in JS code.
3452
+ * @internal
3453
+ */
3454
+ $signals: DbusObjectSkeleton.SignalSignatures;
3455
+
3028
3456
  // Constructors
3029
3457
 
3030
3458
  constructor(properties?: Partial<DbusObjectSkeleton.ConstructorProps>, ...args: any[]);
@@ -3033,6 +3461,24 @@ export namespace CloudProviders {
3033
3461
 
3034
3462
  static ['new'](object_path: string): DbusObjectSkeleton;
3035
3463
 
3464
+ // Signals
3465
+
3466
+ connect<K extends keyof DbusObjectSkeleton.SignalSignatures>(
3467
+ signal: K,
3468
+ callback: GObject.SignalCallback<this, DbusObjectSkeleton.SignalSignatures[K]>,
3469
+ ): number;
3470
+ connect(signal: string, callback: (...args: any[]) => any): number;
3471
+ connect_after<K extends keyof DbusObjectSkeleton.SignalSignatures>(
3472
+ signal: K,
3473
+ callback: GObject.SignalCallback<this, DbusObjectSkeleton.SignalSignatures[K]>,
3474
+ ): number;
3475
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
3476
+ emit<K extends keyof DbusObjectSkeleton.SignalSignatures>(
3477
+ signal: K,
3478
+ ...args: GObject.GjsParameters<DbusObjectSkeleton.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
3479
+ ): void;
3480
+ emit(signal: string, ...args: any[]): void;
3481
+
3036
3482
  // Methods
3037
3483
 
3038
3484
  /**
@@ -3231,7 +3677,21 @@ export namespace CloudProviders {
3231
3677
  * @returns the data if found, or %NULL if no such data exists.
3232
3678
  */
3233
3679
  get_data(key: string): any | null;
3234
- get_property(property_name: string): any;
3680
+ /**
3681
+ * Gets a property of an object.
3682
+ *
3683
+ * The value can be:
3684
+ * - 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)
3685
+ * - a GObject.Value initialized with the expected type of the property
3686
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
3687
+ *
3688
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
3689
+ *
3690
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
3691
+ * @param property_name The name of the property to get
3692
+ * @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
3693
+ */
3694
+ get_property(property_name: string, value: GObject.Value | any): any;
3235
3695
  /**
3236
3696
  * This function gets back user data pointers stored via
3237
3697
  * g_object_set_qdata().
@@ -3359,7 +3819,12 @@ export namespace CloudProviders {
3359
3819
  * @param data data to associate with that key
3360
3820
  */
3361
3821
  set_data(key: string, data?: any | null): void;
3362
- set_property(property_name: string, value: any): void;
3822
+ /**
3823
+ * Sets a property on an object.
3824
+ * @param property_name The name of the property to set
3825
+ * @param value The value to set the property to
3826
+ */
3827
+ set_property(property_name: string, value: GObject.Value | any): void;
3363
3828
  /**
3364
3829
  * Remove a specified datum from the object's data associations,
3365
3830
  * without invoking the association's destroy handler.
@@ -3509,14 +3974,48 @@ export namespace CloudProviders {
3509
3974
  * @param pspec
3510
3975
  */
3511
3976
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
3977
+ /**
3978
+ * 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.
3979
+ * @param id Handler ID of the handler to be disconnected
3980
+ */
3512
3981
  disconnect(id: number): void;
3982
+ /**
3983
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
3984
+ * @param properties Object containing the properties to set
3985
+ */
3513
3986
  set(properties: { [key: string]: any }): void;
3514
- block_signal_handler(id: number): any;
3515
- unblock_signal_handler(id: number): any;
3516
- stop_emission_by_name(detailedName: string): any;
3987
+ /**
3988
+ * Blocks a handler of an instance so it will not be called during any signal emissions
3989
+ * @param id Handler ID of the handler to be blocked
3990
+ */
3991
+ block_signal_handler(id: number): void;
3992
+ /**
3993
+ * Unblocks a handler so it will be called again during any signal emissions
3994
+ * @param id Handler ID of the handler to be unblocked
3995
+ */
3996
+ unblock_signal_handler(id: number): void;
3997
+ /**
3998
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
3999
+ * @param detailedName Name of the signal to stop emission of
4000
+ */
4001
+ stop_emission_by_name(detailedName: string): void;
3517
4002
  }
3518
4003
 
3519
4004
  namespace DbusProviderProxy {
4005
+ // Signal signatures
4006
+ interface SignalSignatures extends Gio.DBusProxy.SignalSignatures {
4007
+ 'notify::g-bus-type': (pspec: GObject.ParamSpec) => void;
4008
+ 'notify::g-connection': (pspec: GObject.ParamSpec) => void;
4009
+ 'notify::g-default-timeout': (pspec: GObject.ParamSpec) => void;
4010
+ 'notify::g-flags': (pspec: GObject.ParamSpec) => void;
4011
+ 'notify::g-interface-info': (pspec: GObject.ParamSpec) => void;
4012
+ 'notify::g-interface-name': (pspec: GObject.ParamSpec) => void;
4013
+ 'notify::g-name': (pspec: GObject.ParamSpec) => void;
4014
+ 'notify::g-name-owner': (pspec: GObject.ParamSpec) => void;
4015
+ 'notify::g-object-path': (pspec: GObject.ParamSpec) => void;
4016
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
4017
+ }
4018
+
3520
4019
  // Constructor properties interface
3521
4020
 
3522
4021
  interface ConstructorProps
@@ -3536,6 +4035,15 @@ export namespace CloudProviders {
3536
4035
  {
3537
4036
  static $gtype: GObject.GType<DbusProviderProxy>;
3538
4037
 
4038
+ /**
4039
+ * Compile-time signal type information.
4040
+ *
4041
+ * This instance property is generated only for TypeScript type checking.
4042
+ * It is not defined at runtime and should not be accessed in JS code.
4043
+ * @internal
4044
+ */
4045
+ $signals: DbusProviderProxy.SignalSignatures;
4046
+
3539
4047
  // Constructors
3540
4048
 
3541
4049
  constructor(properties?: Partial<DbusProviderProxy.ConstructorProps>, ...args: any[]);
@@ -3571,6 +4079,24 @@ export namespace CloudProviders {
3571
4079
 
3572
4080
  static new_sync(...args: never[]): any;
3573
4081
 
4082
+ // Signals
4083
+
4084
+ connect<K extends keyof DbusProviderProxy.SignalSignatures>(
4085
+ signal: K,
4086
+ callback: GObject.SignalCallback<this, DbusProviderProxy.SignalSignatures[K]>,
4087
+ ): number;
4088
+ connect(signal: string, callback: (...args: any[]) => any): number;
4089
+ connect_after<K extends keyof DbusProviderProxy.SignalSignatures>(
4090
+ signal: K,
4091
+ callback: GObject.SignalCallback<this, DbusProviderProxy.SignalSignatures[K]>,
4092
+ ): number;
4093
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4094
+ emit<K extends keyof DbusProviderProxy.SignalSignatures>(
4095
+ signal: K,
4096
+ ...args: GObject.GjsParameters<DbusProviderProxy.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
4097
+ ): void;
4098
+ emit(signal: string, ...args: any[]): void;
4099
+
3574
4100
  // Static methods
3575
4101
 
3576
4102
  /**
@@ -3886,7 +4412,7 @@ export namespace CloudProviders {
3886
4412
  * If the object is not initialized, or initialization returns with an
3887
4413
  * error, then all operations on the object except g_object_ref() and
3888
4414
  * g_object_unref() are considered to be invalid, and have undefined
3889
- * behaviour. See the [introduction][ginitable] for more details.
4415
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
3890
4416
  *
3891
4417
  * Callers should not assume that a class which implements #GInitable can be
3892
4418
  * initialized multiple times, unless the class explicitly documents itself as
@@ -3929,7 +4455,7 @@ export namespace CloudProviders {
3929
4455
  * If the object is not initialized, or initialization returns with an
3930
4456
  * error, then all operations on the object except g_object_ref() and
3931
4457
  * g_object_unref() are considered to be invalid, and have undefined
3932
- * behaviour. See the [introduction][ginitable] for more details.
4458
+ * behaviour. See the [description][iface`Gio`.Initable#description] for more details.
3933
4459
  *
3934
4460
  * Callers should not assume that a class which implements #GInitable can be
3935
4461
  * initialized multiple times, unless the class explicitly documents itself as
@@ -4069,7 +4595,21 @@ export namespace CloudProviders {
4069
4595
  * @returns the data if found, or %NULL if no such data exists.
4070
4596
  */
4071
4597
  get_data(key: string): any | null;
4072
- get_property(property_name: string): any;
4598
+ /**
4599
+ * Gets a property of an object.
4600
+ *
4601
+ * The value can be:
4602
+ * - 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)
4603
+ * - a GObject.Value initialized with the expected type of the property
4604
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
4605
+ *
4606
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
4607
+ *
4608
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
4609
+ * @param property_name The name of the property to get
4610
+ * @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
4611
+ */
4612
+ get_property(property_name: string, value: GObject.Value | any): any;
4073
4613
  /**
4074
4614
  * This function gets back user data pointers stored via
4075
4615
  * g_object_set_qdata().
@@ -4197,7 +4737,12 @@ export namespace CloudProviders {
4197
4737
  * @param data data to associate with that key
4198
4738
  */
4199
4739
  set_data(key: string, data?: any | null): void;
4200
- set_property(property_name: string, value: any): void;
4740
+ /**
4741
+ * Sets a property on an object.
4742
+ * @param property_name The name of the property to set
4743
+ * @param value The value to set the property to
4744
+ */
4745
+ set_property(property_name: string, value: GObject.Value | any): void;
4201
4746
  /**
4202
4747
  * Remove a specified datum from the object's data associations,
4203
4748
  * without invoking the association's destroy handler.
@@ -4347,14 +4892,40 @@ export namespace CloudProviders {
4347
4892
  * @param pspec
4348
4893
  */
4349
4894
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
4895
+ /**
4896
+ * 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.
4897
+ * @param id Handler ID of the handler to be disconnected
4898
+ */
4350
4899
  disconnect(id: number): void;
4900
+ /**
4901
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
4902
+ * @param properties Object containing the properties to set
4903
+ */
4351
4904
  set(properties: { [key: string]: any }): void;
4352
- block_signal_handler(id: number): any;
4353
- unblock_signal_handler(id: number): any;
4354
- stop_emission_by_name(detailedName: string): any;
4905
+ /**
4906
+ * Blocks a handler of an instance so it will not be called during any signal emissions
4907
+ * @param id Handler ID of the handler to be blocked
4908
+ */
4909
+ block_signal_handler(id: number): void;
4910
+ /**
4911
+ * Unblocks a handler so it will be called again during any signal emissions
4912
+ * @param id Handler ID of the handler to be unblocked
4913
+ */
4914
+ unblock_signal_handler(id: number): void;
4915
+ /**
4916
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
4917
+ * @param detailedName Name of the signal to stop emission of
4918
+ */
4919
+ stop_emission_by_name(detailedName: string): void;
4355
4920
  }
4356
4921
 
4357
4922
  namespace DbusProviderSkeleton {
4923
+ // Signal signatures
4924
+ interface SignalSignatures extends Gio.DBusInterfaceSkeleton.SignalSignatures {
4925
+ 'notify::g-flags': (pspec: GObject.ParamSpec) => void;
4926
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
4927
+ }
4928
+
4358
4929
  // Constructor properties interface
4359
4930
 
4360
4931
  interface ConstructorProps
@@ -4369,6 +4940,15 @@ export namespace CloudProviders {
4369
4940
  class DbusProviderSkeleton extends Gio.DBusInterfaceSkeleton implements DbusProvider, Gio.DBusInterface {
4370
4941
  static $gtype: GObject.GType<DbusProviderSkeleton>;
4371
4942
 
4943
+ /**
4944
+ * Compile-time signal type information.
4945
+ *
4946
+ * This instance property is generated only for TypeScript type checking.
4947
+ * It is not defined at runtime and should not be accessed in JS code.
4948
+ * @internal
4949
+ */
4950
+ $signals: DbusProviderSkeleton.SignalSignatures;
4951
+
4372
4952
  // Constructors
4373
4953
 
4374
4954
  constructor(properties?: Partial<DbusProviderSkeleton.ConstructorProps>, ...args: any[]);
@@ -4377,6 +4957,26 @@ export namespace CloudProviders {
4377
4957
 
4378
4958
  static ['new'](): DbusProviderSkeleton;
4379
4959
 
4960
+ // Signals
4961
+
4962
+ connect<K extends keyof DbusProviderSkeleton.SignalSignatures>(
4963
+ signal: K,
4964
+ callback: GObject.SignalCallback<this, DbusProviderSkeleton.SignalSignatures[K]>,
4965
+ ): number;
4966
+ connect(signal: string, callback: (...args: any[]) => any): number;
4967
+ connect_after<K extends keyof DbusProviderSkeleton.SignalSignatures>(
4968
+ signal: K,
4969
+ callback: GObject.SignalCallback<this, DbusProviderSkeleton.SignalSignatures[K]>,
4970
+ ): number;
4971
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
4972
+ emit<K extends keyof DbusProviderSkeleton.SignalSignatures>(
4973
+ signal: K,
4974
+ ...args: GObject.GjsParameters<DbusProviderSkeleton.SignalSignatures[K]> extends [any, ...infer Q]
4975
+ ? Q
4976
+ : never
4977
+ ): void;
4978
+ emit(signal: string, ...args: any[]): void;
4979
+
4380
4980
  // Inherited properties
4381
4981
  /**
4382
4982
  * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-CloudProviders-Provider.Name">"Name"</link>.
@@ -4538,7 +5138,21 @@ export namespace CloudProviders {
4538
5138
  * @returns the data if found, or %NULL if no such data exists.
4539
5139
  */
4540
5140
  get_data(key: string): any | null;
4541
- get_property(property_name: string): any;
5141
+ /**
5142
+ * Gets a property of an object.
5143
+ *
5144
+ * The value can be:
5145
+ * - 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)
5146
+ * - a GObject.Value initialized with the expected type of the property
5147
+ * - a GObject.Value initialized with a type to which the expected type of the property can be transformed
5148
+ *
5149
+ * In general, a copy is made of the property contents and the caller is responsible for freeing the memory by calling GObject.Value.unset.
5150
+ *
5151
+ * Note that GObject.Object.get_property is really intended for language bindings, GObject.Object.get is much more convenient for C programming.
5152
+ * @param property_name The name of the property to get
5153
+ * @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
5154
+ */
5155
+ get_property(property_name: string, value: GObject.Value | any): any;
4542
5156
  /**
4543
5157
  * This function gets back user data pointers stored via
4544
5158
  * g_object_set_qdata().
@@ -4666,7 +5280,12 @@ export namespace CloudProviders {
4666
5280
  * @param data data to associate with that key
4667
5281
  */
4668
5282
  set_data(key: string, data?: any | null): void;
4669
- set_property(property_name: string, value: any): void;
5283
+ /**
5284
+ * Sets a property on an object.
5285
+ * @param property_name The name of the property to set
5286
+ * @param value The value to set the property to
5287
+ */
5288
+ set_property(property_name: string, value: GObject.Value | any): void;
4670
5289
  /**
4671
5290
  * Remove a specified datum from the object's data associations,
4672
5291
  * without invoking the association's destroy handler.
@@ -4816,22 +5435,39 @@ export namespace CloudProviders {
4816
5435
  * @param pspec
4817
5436
  */
4818
5437
  vfunc_set_property(property_id: number, value: GObject.Value | any, pspec: GObject.ParamSpec): void;
5438
+ /**
5439
+ * 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.
5440
+ * @param id Handler ID of the handler to be disconnected
5441
+ */
4819
5442
  disconnect(id: number): void;
5443
+ /**
5444
+ * Sets multiple properties of an object at once. The properties argument should be a dictionary mapping property names to values.
5445
+ * @param properties Object containing the properties to set
5446
+ */
4820
5447
  set(properties: { [key: string]: any }): void;
4821
- block_signal_handler(id: number): any;
4822
- unblock_signal_handler(id: number): any;
4823
- stop_emission_by_name(detailedName: string): any;
5448
+ /**
5449
+ * Blocks a handler of an instance so it will not be called during any signal emissions
5450
+ * @param id Handler ID of the handler to be blocked
5451
+ */
5452
+ block_signal_handler(id: number): void;
5453
+ /**
5454
+ * Unblocks a handler so it will be called again during any signal emissions
5455
+ * @param id Handler ID of the handler to be unblocked
5456
+ */
5457
+ unblock_signal_handler(id: number): void;
5458
+ /**
5459
+ * Stops a signal's emission by the given signal name. This will prevent the default handler and any subsequent signal handlers from being invoked.
5460
+ * @param detailedName Name of the signal to stop emission of
5461
+ */
5462
+ stop_emission_by_name(detailedName: string): void;
4824
5463
  }
4825
5464
 
4826
5465
  namespace Provider {
4827
- // Signal callback interfaces
4828
-
4829
- interface AccountsChanged {
4830
- (): void;
4831
- }
4832
-
4833
- interface Removed {
4834
- (): void;
5466
+ // Signal signatures
5467
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
5468
+ 'accounts-changed': () => void;
5469
+ removed: () => void;
5470
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
4835
5471
  }
4836
5472
 
4837
5473
  // Constructor properties interface
@@ -4853,6 +5489,15 @@ export namespace CloudProviders {
4853
5489
 
4854
5490
  get name(): string;
4855
5491
 
5492
+ /**
5493
+ * Compile-time signal type information.
5494
+ *
5495
+ * This instance property is generated only for TypeScript type checking.
5496
+ * It is not defined at runtime and should not be accessed in JS code.
5497
+ * @internal
5498
+ */
5499
+ $signals: Provider.SignalSignatures;
5500
+
4856
5501
  // Constructors
4857
5502
 
4858
5503
  constructor(properties?: Partial<Provider.ConstructorProps>, ...args: any[]);
@@ -4863,15 +5508,21 @@ export namespace CloudProviders {
4863
5508
 
4864
5509
  // Signals
4865
5510
 
4866
- connect(id: string, callback: (...args: any[]) => any): number;
4867
- connect_after(id: string, callback: (...args: any[]) => any): number;
4868
- emit(id: string, ...args: any[]): void;
4869
- connect(signal: 'accounts-changed', callback: (_source: this) => void): number;
4870
- connect_after(signal: 'accounts-changed', callback: (_source: this) => void): number;
4871
- emit(signal: 'accounts-changed'): void;
4872
- connect(signal: 'removed', callback: (_source: this) => void): number;
4873
- connect_after(signal: 'removed', callback: (_source: this) => void): number;
4874
- emit(signal: 'removed'): void;
5511
+ connect<K extends keyof Provider.SignalSignatures>(
5512
+ signal: K,
5513
+ callback: GObject.SignalCallback<this, Provider.SignalSignatures[K]>,
5514
+ ): number;
5515
+ connect(signal: string, callback: (...args: any[]) => any): number;
5516
+ connect_after<K extends keyof Provider.SignalSignatures>(
5517
+ signal: K,
5518
+ callback: GObject.SignalCallback<this, Provider.SignalSignatures[K]>,
5519
+ ): number;
5520
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5521
+ emit<K extends keyof Provider.SignalSignatures>(
5522
+ signal: K,
5523
+ ...args: GObject.GjsParameters<Provider.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5524
+ ): void;
5525
+ emit(signal: string, ...args: any[]): void;
4875
5526
 
4876
5527
  // Methods
4877
5528
 
@@ -4880,6 +5531,14 @@ export namespace CloudProviders {
4880
5531
  }
4881
5532
 
4882
5533
  namespace ProviderExporter {
5534
+ // Signal signatures
5535
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
5536
+ 'notify::bus': (pspec: GObject.ParamSpec) => void;
5537
+ 'notify::bus-name': (pspec: GObject.ParamSpec) => void;
5538
+ 'notify::bus-path': (pspec: GObject.ParamSpec) => void;
5539
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
5540
+ }
5541
+
4883
5542
  // Constructor properties interface
4884
5543
 
4885
5544
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -4910,6 +5569,15 @@ export namespace CloudProviders {
4910
5569
  get name(): string;
4911
5570
  set name(val: string);
4912
5571
 
5572
+ /**
5573
+ * Compile-time signal type information.
5574
+ *
5575
+ * This instance property is generated only for TypeScript type checking.
5576
+ * It is not defined at runtime and should not be accessed in JS code.
5577
+ * @internal
5578
+ */
5579
+ $signals: ProviderExporter.SignalSignatures;
5580
+
4913
5581
  // Constructors
4914
5582
 
4915
5583
  constructor(properties?: Partial<ProviderExporter.ConstructorProps>, ...args: any[]);
@@ -4918,6 +5586,24 @@ export namespace CloudProviders {
4918
5586
 
4919
5587
  static ['new'](bus: Gio.DBusConnection, bus_name: string, bus_path: string): ProviderExporter;
4920
5588
 
5589
+ // Signals
5590
+
5591
+ connect<K extends keyof ProviderExporter.SignalSignatures>(
5592
+ signal: K,
5593
+ callback: GObject.SignalCallback<this, ProviderExporter.SignalSignatures[K]>,
5594
+ ): number;
5595
+ connect(signal: string, callback: (...args: any[]) => any): number;
5596
+ connect_after<K extends keyof ProviderExporter.SignalSignatures>(
5597
+ signal: K,
5598
+ callback: GObject.SignalCallback<this, ProviderExporter.SignalSignatures[K]>,
5599
+ ): number;
5600
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
5601
+ emit<K extends keyof ProviderExporter.SignalSignatures>(
5602
+ signal: K,
5603
+ ...args: GObject.GjsParameters<ProviderExporter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
5604
+ ): void;
5605
+ emit(signal: string, ...args: any[]): void;
5606
+
4921
5607
  // Methods
4922
5608
 
4923
5609
  get_name(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/cloudproviders-0.3",
3
- "version": "0.3.0-4.0.0-beta.21",
3
+ "version": "0.3.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for CloudProviders-0.3, generated from library version 0.3.0",
5
5
  "type": "module",
6
6
  "module": "cloudproviders-0.3.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": "*"