@girs/gom-1.0 1.0.0-4.0.0-beta.21 → 1.0.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/gom-1.0.d.ts +302 -0
  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/gom-1.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gom-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for Gom-1.0, generated from library version 1.0.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/gom-1.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 Gio from '@girs/gio-2.0';
12
14
  import type GObject from '@girs/gobject-2.0';
@@ -81,6 +83,9 @@ export namespace Gom {
81
83
  (value: GObject.Value | any): GLib.Bytes;
82
84
  }
83
85
  namespace Adapter {
86
+ // Signal signatures
87
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
88
+
84
89
  // Constructor properties interface
85
90
 
86
91
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -89,6 +94,15 @@ export namespace Gom {
89
94
  class Adapter extends GObject.Object {
90
95
  static $gtype: GObject.GType<Adapter>;
91
96
 
97
+ /**
98
+ * Compile-time signal type information.
99
+ *
100
+ * This instance property is generated only for TypeScript type checking.
101
+ * It is not defined at runtime and should not be accessed in JS code.
102
+ * @internal
103
+ */
104
+ $signals: Adapter.SignalSignatures;
105
+
92
106
  // Constructors
93
107
 
94
108
  constructor(properties?: Partial<Adapter.ConstructorProps>, ...args: any[]);
@@ -97,6 +111,24 @@ export namespace Gom {
97
111
 
98
112
  static ['new'](): Adapter;
99
113
 
114
+ // Signals
115
+
116
+ connect<K extends keyof Adapter.SignalSignatures>(
117
+ signal: K,
118
+ callback: GObject.SignalCallback<this, Adapter.SignalSignatures[K]>,
119
+ ): number;
120
+ connect(signal: string, callback: (...args: any[]) => any): number;
121
+ connect_after<K extends keyof Adapter.SignalSignatures>(
122
+ signal: K,
123
+ callback: GObject.SignalCallback<this, Adapter.SignalSignatures[K]>,
124
+ ): number;
125
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
126
+ emit<K extends keyof Adapter.SignalSignatures>(
127
+ signal: K,
128
+ ...args: GObject.GjsParameters<Adapter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
129
+ ): void;
130
+ emit(signal: string, ...args: any[]): void;
131
+
100
132
  // Methods
101
133
 
102
134
  close_async(): Promise<boolean>;
@@ -159,6 +191,12 @@ export namespace Gom {
159
191
  }
160
192
 
161
193
  namespace Command {
194
+ // Signal signatures
195
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
196
+ 'notify::adapter': (pspec: GObject.ParamSpec) => void;
197
+ 'notify::sql': (pspec: GObject.ParamSpec) => void;
198
+ }
199
+
162
200
  // Constructor properties interface
163
201
 
164
202
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -175,12 +213,39 @@ export namespace Gom {
175
213
  get adapter(): Adapter;
176
214
  set sql(val: string);
177
215
 
216
+ /**
217
+ * Compile-time signal type information.
218
+ *
219
+ * This instance property is generated only for TypeScript type checking.
220
+ * It is not defined at runtime and should not be accessed in JS code.
221
+ * @internal
222
+ */
223
+ $signals: Command.SignalSignatures;
224
+
178
225
  // Constructors
179
226
 
180
227
  constructor(properties?: Partial<Command.ConstructorProps>, ...args: any[]);
181
228
 
182
229
  _init(...args: any[]): void;
183
230
 
231
+ // Signals
232
+
233
+ connect<K extends keyof Command.SignalSignatures>(
234
+ signal: K,
235
+ callback: GObject.SignalCallback<this, Command.SignalSignatures[K]>,
236
+ ): number;
237
+ connect(signal: string, callback: (...args: any[]) => any): number;
238
+ connect_after<K extends keyof Command.SignalSignatures>(
239
+ signal: K,
240
+ callback: GObject.SignalCallback<this, Command.SignalSignatures[K]>,
241
+ ): number;
242
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
243
+ emit<K extends keyof Command.SignalSignatures>(
244
+ signal: K,
245
+ ...args: GObject.GjsParameters<Command.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
246
+ ): void;
247
+ emit(signal: string, ...args: any[]): void;
248
+
184
249
  // Methods
185
250
 
186
251
  execute(cursor: Cursor): boolean;
@@ -199,6 +264,18 @@ export namespace Gom {
199
264
  }
200
265
 
201
266
  namespace CommandBuilder {
267
+ // Signal signatures
268
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
269
+ 'notify::adapter': (pspec: GObject.ParamSpec) => void;
270
+ 'notify::filter': (pspec: GObject.ParamSpec) => void;
271
+ 'notify::limit': (pspec: GObject.ParamSpec) => void;
272
+ 'notify::m2m-table': (pspec: GObject.ParamSpec) => void;
273
+ 'notify::m2m-type': (pspec: GObject.ParamSpec) => void;
274
+ 'notify::offset': (pspec: GObject.ParamSpec) => void;
275
+ 'notify::resource-type': (pspec: GObject.ParamSpec) => void;
276
+ 'notify::sorting': (pspec: GObject.ParamSpec) => void;
277
+ }
278
+
202
279
  // Constructor properties interface
203
280
 
204
281
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -239,12 +316,39 @@ export namespace Gom {
239
316
  get sorting(): Sorting;
240
317
  set sorting(val: Sorting);
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: CommandBuilder.SignalSignatures;
327
+
242
328
  // Constructors
243
329
 
244
330
  constructor(properties?: Partial<CommandBuilder.ConstructorProps>, ...args: any[]);
245
331
 
246
332
  _init(...args: any[]): void;
247
333
 
334
+ // Signals
335
+
336
+ connect<K extends keyof CommandBuilder.SignalSignatures>(
337
+ signal: K,
338
+ callback: GObject.SignalCallback<this, CommandBuilder.SignalSignatures[K]>,
339
+ ): number;
340
+ connect(signal: string, callback: (...args: any[]) => any): number;
341
+ connect_after<K extends keyof CommandBuilder.SignalSignatures>(
342
+ signal: K,
343
+ callback: GObject.SignalCallback<this, CommandBuilder.SignalSignatures[K]>,
344
+ ): number;
345
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
346
+ emit<K extends keyof CommandBuilder.SignalSignatures>(
347
+ signal: K,
348
+ ...args: GObject.GjsParameters<CommandBuilder.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
349
+ ): void;
350
+ emit(signal: string, ...args: any[]): void;
351
+
248
352
  // Methods
249
353
 
250
354
  /**
@@ -289,6 +393,11 @@ export namespace Gom {
289
393
  }
290
394
 
291
395
  namespace Cursor {
396
+ // Signal signatures
397
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
398
+ 'notify::statement': (pspec: GObject.ParamSpec) => void;
399
+ }
400
+
292
401
  // Constructor properties interface
293
402
 
294
403
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -303,12 +412,39 @@ export namespace Gom {
303
412
 
304
413
  get statement(): any;
305
414
 
415
+ /**
416
+ * Compile-time signal type information.
417
+ *
418
+ * This instance property is generated only for TypeScript type checking.
419
+ * It is not defined at runtime and should not be accessed in JS code.
420
+ * @internal
421
+ */
422
+ $signals: Cursor.SignalSignatures;
423
+
306
424
  // Constructors
307
425
 
308
426
  constructor(properties?: Partial<Cursor.ConstructorProps>, ...args: any[]);
309
427
 
310
428
  _init(...args: any[]): void;
311
429
 
430
+ // Signals
431
+
432
+ connect<K extends keyof Cursor.SignalSignatures>(
433
+ signal: K,
434
+ callback: GObject.SignalCallback<this, Cursor.SignalSignatures[K]>,
435
+ ): number;
436
+ connect(signal: string, callback: (...args: any[]) => any): number;
437
+ connect_after<K extends keyof Cursor.SignalSignatures>(
438
+ signal: K,
439
+ callback: GObject.SignalCallback<this, Cursor.SignalSignatures[K]>,
440
+ ): number;
441
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
442
+ emit<K extends keyof Cursor.SignalSignatures>(
443
+ signal: K,
444
+ ...args: GObject.GjsParameters<Cursor.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
445
+ ): void;
446
+ emit(signal: string, ...args: any[]): void;
447
+
312
448
  // Methods
313
449
 
314
450
  get_column(column: number, value: GObject.Value | any): void;
@@ -326,6 +462,12 @@ export namespace Gom {
326
462
  }
327
463
 
328
464
  namespace Filter {
465
+ // Signal signatures
466
+ interface SignalSignatures extends GObject.InitiallyUnowned.SignalSignatures {
467
+ 'notify::mode': (pspec: GObject.ParamSpec) => void;
468
+ 'notify::sql': (pspec: GObject.ParamSpec) => void;
469
+ }
470
+
329
471
  // Constructor properties interface
330
472
 
331
473
  interface ConstructorProps extends GObject.InitiallyUnowned.ConstructorProps {
@@ -342,6 +484,15 @@ export namespace Gom {
342
484
  get mode(): FilterMode;
343
485
  set sql(val: string);
344
486
 
487
+ /**
488
+ * Compile-time signal type information.
489
+ *
490
+ * This instance property is generated only for TypeScript type checking.
491
+ * It is not defined at runtime and should not be accessed in JS code.
492
+ * @internal
493
+ */
494
+ $signals: Filter.SignalSignatures;
495
+
345
496
  // Constructors
346
497
 
347
498
  constructor(properties?: Partial<Filter.ConstructorProps>, ...args: any[]);
@@ -378,6 +529,24 @@ export namespace Gom {
378
529
 
379
530
  static new_sql(sql: string, values: (GObject.Value | any)[]): Filter;
380
531
 
532
+ // Signals
533
+
534
+ connect<K extends keyof Filter.SignalSignatures>(
535
+ signal: K,
536
+ callback: GObject.SignalCallback<this, Filter.SignalSignatures[K]>,
537
+ ): number;
538
+ connect(signal: string, callback: (...args: any[]) => any): number;
539
+ connect_after<K extends keyof Filter.SignalSignatures>(
540
+ signal: K,
541
+ callback: GObject.SignalCallback<this, Filter.SignalSignatures[K]>,
542
+ ): number;
543
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
544
+ emit<K extends keyof Filter.SignalSignatures>(
545
+ signal: K,
546
+ ...args: GObject.GjsParameters<Filter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
547
+ ): void;
548
+ emit(signal: string, ...args: any[]): void;
549
+
381
550
  // Methods
382
551
 
383
552
  get_sql(table_map: { [key: string]: any } | GLib.HashTable<any, any>): string;
@@ -390,6 +559,11 @@ export namespace Gom {
390
559
  }
391
560
 
392
561
  namespace Repository {
562
+ // Signal signatures
563
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
564
+ 'notify::adapter': (pspec: GObject.ParamSpec) => void;
565
+ }
566
+
393
567
  // Constructor properties interface
394
568
 
395
569
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -404,6 +578,15 @@ export namespace Gom {
404
578
 
405
579
  get adapter(): Adapter;
406
580
 
581
+ /**
582
+ * Compile-time signal type information.
583
+ *
584
+ * This instance property is generated only for TypeScript type checking.
585
+ * It is not defined at runtime and should not be accessed in JS code.
586
+ * @internal
587
+ */
588
+ $signals: Repository.SignalSignatures;
589
+
407
590
  // Constructors
408
591
 
409
592
  constructor(properties?: Partial<Repository.ConstructorProps>, ...args: any[]);
@@ -412,6 +595,24 @@ export namespace Gom {
412
595
 
413
596
  static ['new'](adapter: Adapter): Repository;
414
597
 
598
+ // Signals
599
+
600
+ connect<K extends keyof Repository.SignalSignatures>(
601
+ signal: K,
602
+ callback: GObject.SignalCallback<this, Repository.SignalSignatures[K]>,
603
+ ): number;
604
+ connect(signal: string, callback: (...args: any[]) => any): number;
605
+ connect_after<K extends keyof Repository.SignalSignatures>(
606
+ signal: K,
607
+ callback: GObject.SignalCallback<this, Repository.SignalSignatures[K]>,
608
+ ): number;
609
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
610
+ emit<K extends keyof Repository.SignalSignatures>(
611
+ signal: K,
612
+ ...args: GObject.GjsParameters<Repository.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
613
+ ): void;
614
+ emit(signal: string, ...args: any[]): void;
615
+
415
616
  // Methods
416
617
 
417
618
  /**
@@ -585,6 +786,11 @@ export namespace Gom {
585
786
  }
586
787
 
587
788
  namespace Resource {
789
+ // Signal signatures
790
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
791
+ 'notify::repository': (pspec: GObject.ParamSpec) => void;
792
+ }
793
+
588
794
  // Constructor properties interface
589
795
 
590
796
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -600,12 +806,39 @@ export namespace Gom {
600
806
  get repository(): Repository;
601
807
  set repository(val: Repository);
602
808
 
809
+ /**
810
+ * Compile-time signal type information.
811
+ *
812
+ * This instance property is generated only for TypeScript type checking.
813
+ * It is not defined at runtime and should not be accessed in JS code.
814
+ * @internal
815
+ */
816
+ $signals: Resource.SignalSignatures;
817
+
603
818
  // Constructors
604
819
 
605
820
  constructor(properties?: Partial<Resource.ConstructorProps>, ...args: any[]);
606
821
 
607
822
  _init(...args: any[]): void;
608
823
 
824
+ // Signals
825
+
826
+ connect<K extends keyof Resource.SignalSignatures>(
827
+ signal: K,
828
+ callback: GObject.SignalCallback<this, Resource.SignalSignatures[K]>,
829
+ ): number;
830
+ connect(signal: string, callback: (...args: any[]) => any): number;
831
+ connect_after<K extends keyof Resource.SignalSignatures>(
832
+ signal: K,
833
+ callback: GObject.SignalCallback<this, Resource.SignalSignatures[K]>,
834
+ ): number;
835
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
836
+ emit<K extends keyof Resource.SignalSignatures>(
837
+ signal: K,
838
+ ...args: GObject.GjsParameters<Resource.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
839
+ ): void;
840
+ emit(signal: string, ...args: any[]): void;
841
+
609
842
  // Static methods
610
843
 
611
844
  static from_bytes_func_quark(): GLib.Quark;
@@ -666,6 +899,18 @@ export namespace Gom {
666
899
  }
667
900
 
668
901
  namespace ResourceGroup {
902
+ // Signal signatures
903
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
904
+ 'notify::count': (pspec: GObject.ParamSpec) => void;
905
+ 'notify::filter': (pspec: GObject.ParamSpec) => void;
906
+ 'notify::is-writable': (pspec: GObject.ParamSpec) => void;
907
+ 'notify::m2m-table': (pspec: GObject.ParamSpec) => void;
908
+ 'notify::m2m-type': (pspec: GObject.ParamSpec) => void;
909
+ 'notify::repository': (pspec: GObject.ParamSpec) => void;
910
+ 'notify::resource-type': (pspec: GObject.ParamSpec) => void;
911
+ 'notify::sorting': (pspec: GObject.ParamSpec) => void;
912
+ }
913
+
669
914
  // Constructor properties interface
670
915
 
671
916
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -702,6 +947,15 @@ export namespace Gom {
702
947
  get resourceType(): GObject.GType;
703
948
  get sorting(): Sorting;
704
949
 
950
+ /**
951
+ * Compile-time signal type information.
952
+ *
953
+ * This instance property is generated only for TypeScript type checking.
954
+ * It is not defined at runtime and should not be accessed in JS code.
955
+ * @internal
956
+ */
957
+ $signals: ResourceGroup.SignalSignatures;
958
+
705
959
  // Constructors
706
960
 
707
961
  constructor(properties?: Partial<ResourceGroup.ConstructorProps>, ...args: any[]);
@@ -710,6 +964,24 @@ export namespace Gom {
710
964
 
711
965
  static ['new'](repository: Repository): ResourceGroup;
712
966
 
967
+ // Signals
968
+
969
+ connect<K extends keyof ResourceGroup.SignalSignatures>(
970
+ signal: K,
971
+ callback: GObject.SignalCallback<this, ResourceGroup.SignalSignatures[K]>,
972
+ ): number;
973
+ connect(signal: string, callback: (...args: any[]) => any): number;
974
+ connect_after<K extends keyof ResourceGroup.SignalSignatures>(
975
+ signal: K,
976
+ callback: GObject.SignalCallback<this, ResourceGroup.SignalSignatures[K]>,
977
+ ): number;
978
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
979
+ emit<K extends keyof ResourceGroup.SignalSignatures>(
980
+ signal: K,
981
+ ...args: GObject.GjsParameters<ResourceGroup.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
982
+ ): void;
983
+ emit(signal: string, ...args: any[]): void;
984
+
713
985
  // Methods
714
986
 
715
987
  append(resource: Resource): boolean;
@@ -752,6 +1024,9 @@ export namespace Gom {
752
1024
  }
753
1025
 
754
1026
  namespace Sorting {
1027
+ // Signal signatures
1028
+ interface SignalSignatures extends GObject.InitiallyUnowned.SignalSignatures {}
1029
+
755
1030
  // Constructor properties interface
756
1031
 
757
1032
  interface ConstructorProps extends GObject.InitiallyUnowned.ConstructorProps {}
@@ -760,12 +1035,39 @@ export namespace Gom {
760
1035
  class Sorting extends GObject.InitiallyUnowned {
761
1036
  static $gtype: GObject.GType<Sorting>;
762
1037
 
1038
+ /**
1039
+ * Compile-time signal type information.
1040
+ *
1041
+ * This instance property is generated only for TypeScript type checking.
1042
+ * It is not defined at runtime and should not be accessed in JS code.
1043
+ * @internal
1044
+ */
1045
+ $signals: Sorting.SignalSignatures;
1046
+
763
1047
  // Constructors
764
1048
 
765
1049
  constructor(properties?: Partial<Sorting.ConstructorProps>, ...args: any[]);
766
1050
 
767
1051
  _init(...args: any[]): void;
768
1052
 
1053
+ // Signals
1054
+
1055
+ connect<K extends keyof Sorting.SignalSignatures>(
1056
+ signal: K,
1057
+ callback: GObject.SignalCallback<this, Sorting.SignalSignatures[K]>,
1058
+ ): number;
1059
+ connect(signal: string, callback: (...args: any[]) => any): number;
1060
+ connect_after<K extends keyof Sorting.SignalSignatures>(
1061
+ signal: K,
1062
+ callback: GObject.SignalCallback<this, Sorting.SignalSignatures[K]>,
1063
+ ): number;
1064
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1065
+ emit<K extends keyof Sorting.SignalSignatures>(
1066
+ signal: K,
1067
+ ...args: GObject.GjsParameters<Sorting.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1068
+ ): void;
1069
+ emit(signal: string, ...args: any[]): void;
1070
+
769
1071
  // Methods
770
1072
 
771
1073
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gom-1.0",
3
- "version": "1.0.0-4.0.0-beta.21",
3
+ "version": "1.0.0-4.0.0-beta.24",
4
4
  "description": "GJS TypeScript type definitions for Gom-1.0, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "gom-1.0.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": "*"