@girs/xed-1.0 4.9.0 → 5.1.0

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
@@ -4,7 +4,7 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/xed-1.0)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/xed-1.0)
6
6
 
7
- GJS TypeScript type definitions for Xed-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.9.0.
7
+ GJS TypeScript type definitions for Xed-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.1.0.
8
8
 
9
9
  This package contains type declarations only. It ships no runtime code, so it adds
10
10
  nothing to your program and works with any bundler or none at all.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/xed-1.0",
3
- "version": "4.9.0",
3
+ "version": "5.1.0",
4
4
  "description": "GJS TypeScript type definitions for Xed-1.0",
5
5
  "type": "module",
6
6
  "module": "xed-1.0.js",
@@ -36,21 +36,21 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.9.0",
40
- "@girs/gtksource-4": "^4.9.0",
41
- "@girs/gtk-3.0": "^4.9.0",
42
- "@girs/xlib-2.0": "^4.9.0",
43
- "@girs/gdk-3.0": "^4.9.0",
44
- "@girs/cairo-1.0": "^4.9.0",
45
- "@girs/gobject-2.0": "^4.9.0",
46
- "@girs/glib-2.0": "^4.9.0",
47
- "@girs/pango-1.0": "^4.9.0",
48
- "@girs/harfbuzz-0.0": "^4.9.0",
49
- "@girs/freetype2-2.0": "^4.9.0",
50
- "@girs/gio-2.0": "^4.9.0",
51
- "@girs/gmodule-2.0": "^4.9.0",
52
- "@girs/gdkpixbuf-2.0": "^4.9.0",
53
- "@girs/atk-1.0": "^4.9.0" },
39
+ "@girs/gjs": "^5.1.0",
40
+ "@girs/gtksource-4": "^5.1.0",
41
+ "@girs/gtk-3.0": "^5.1.0",
42
+ "@girs/xlib-2.0": "^5.1.0",
43
+ "@girs/gdk-3.0": "^5.1.0",
44
+ "@girs/cairo-1.0": "^5.1.0",
45
+ "@girs/gobject-2.0": "^5.1.0",
46
+ "@girs/glib-2.0": "^5.1.0",
47
+ "@girs/pango-1.0": "^5.1.0",
48
+ "@girs/harfbuzz-0.0": "^5.1.0",
49
+ "@girs/freetype2-2.0": "^5.1.0",
50
+ "@girs/gio-2.0": "^5.1.0",
51
+ "@girs/gmodule-2.0": "^5.1.0",
52
+ "@girs/gdkpixbuf-2.0": "^5.1.0",
53
+ "@girs/atk-1.0": "^5.1.0" },
54
54
  "devDependencies": {
55
55
  "typescript": "*"
56
56
  },
@@ -355,6 +355,45 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
355
355
  */
356
356
  export const PROP_ENUMS: Readonly<Record<string, string>>;
357
357
 
358
+ /**
359
+ * The kinds of value a GTK accessible property, relation or state takes.
360
+ *
361
+ * `enum` is the one that needs a second lookup: `ARIA_VALUE_ENUMS` names the enum GType,
362
+ * and `ENUM_NICKS` and `ENUM_VALUES` answer from there.
363
+ */
364
+ export type AriaValueType = 'string' | 'integer' | 'double' | 'boolean' | 'reference' | 'enum';
365
+
366
+ /**
367
+ * `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
368
+ *
369
+ * The one table in this file that is not a fact about a ParamSpec. A GtkBuilder or
370
+ * Blueprint `accessibility { … }` block is typed by GTK's ARIA table, not by the widget,
371
+ * and the two disagree where it costs most: `orientation` is settable on a `GtkLabel`
372
+ * that implements no `GtkOrientable`, and `checked` is a `GtkAccessibleTristate`, so
373
+ * `checked: true` is the number 1 rather than a boolean. Typing those slots from the
374
+ * widget's properties gets both wrong and raises nothing.
375
+ *
376
+ * Keyed like `ENUM_VALUES` because the ARIA names ARE enum members — of
377
+ * `GtkAccessibleProperty`, `GtkAccessibleRelation` and `GtkAccessibleState` — so
378
+ * `ENUM_NICKS` already lists them and one key parser reads both.
379
+ *
380
+ * Read from each member's own GIR documentation. `gtk_accessible_property_init_value()`
381
+ * is the C half of this table and is not introspectable; the doc sentence is, and states
382
+ * the type for 52 of the 53 members in gtk4 4.23.3. Complete or absent, never partial: a
383
+ * member the generator cannot answer for fails the build and names itself.
384
+ */
385
+ export const ARIA_VALUE_TYPES: Readonly<Record<string, AriaValueType>>;
386
+
387
+ /**
388
+ * The same keys, for the `'enum'` rows only -> the GType of that enum.
389
+ *
390
+ * A table of its own for the reason `PROP_ENUMS` is one: folded in, the values of
391
+ * `ARIA_VALUE_TYPES` would be six reserved words mixed with arbitrary GTypes and telling
392
+ * them apart would be the consumer's problem. Apart, `ARIA_VALUE_TYPES[k] === 'enum'` is
393
+ * the whole test and `ENUM_NICKS[ARIA_VALUE_ENUMS[k]]` is the nick list.
394
+ */
395
+ export const ARIA_VALUE_ENUMS: Readonly<Record<string, string>>;
396
+
358
397
  /** Widget GType -> slot name -> the method that may adopt a child there. */
359
398
  export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
360
399
 
@@ -170,6 +170,31 @@ export const PROP_ENUMS = {
170
170
  'XedPanel.orientation': 'GtkOrientation',
171
171
  };
172
172
 
173
+ // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
174
+ //
175
+ // The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
176
+ // `accessibility { … }` block is typed by GTK's ARIA table instead, and the two disagree
177
+ // where it matters: `orientation` is settable on a `GtkLabel` that implements no
178
+ // `GtkOrientable` and has no such property, and `checked` is a `GtkAccessibleTristate`, so
179
+ // `checked: true` means the number 1 and not the boolean. A consumer typing those slots
180
+ // from the widget gets both wrong, silently.
181
+ //
182
+ // Read from each member's own documentation, which is where GTK keeps the table --
183
+ // `gtk_accessible_property_init_value()` is the C half and is not introspectable, the
184
+ // sentence is. Complete or absent, never partial: a member whose documentation states no
185
+ // value type fails generation and names itself, because a missing row is indistinguishable
186
+ // from "GTK has no such name" and the plausible fallback emits `true` where GTK means 1.
187
+ export const ARIA_VALUE_TYPES = {};
188
+
189
+ // The same keys, for the `'enum'` rows only -> the GType of the enum.
190
+ //
191
+ // The join on from a kind to a number, and a table of its own for the reason `PROP_ENUMS`
192
+ // is one: folding the GType into `ARIA_VALUE_TYPES` would make its values a mix of six
193
+ // reserved words and arbitrary GTypes, and telling them apart would be the consumer's
194
+ // problem. With this, `ARIA_VALUE_TYPES[k] === 'enum'` is the whole test, and
195
+ // `ENUM_NICKS[ARIA_VALUE_ENUMS[k]]` is the nick list.
196
+ export const ARIA_VALUE_ENUMS = {};
197
+
173
198
  export const SLOT_CANDIDATES = {
174
199
  XedTab: {
175
200
  'info-bar': 'set_info_bar',
package/xed-1.0.d.ts CHANGED
@@ -408,15 +408,12 @@ export namespace Xed {
408
408
  // Signals
409
409
  /** @signal */
410
410
  connect<K extends keyof App.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, App.SignalSignatures[K]>): number;
411
- connect(signal: string, callback: (...args: any[]) => any): number;
412
411
 
413
412
  /** @signal */
414
413
  connect_after<K extends keyof App.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, App.SignalSignatures[K]>): number;
415
- connect_after(signal: string, callback: (...args: any[]) => any): number;
416
414
 
417
415
  /** @signal */
418
- emit<K extends keyof App.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<App.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
419
- emit(signal: string, ...args: any[]): void;
416
+ emit<K extends keyof App.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<App.SignalSignatures[K]>): void;
420
417
 
421
418
  // Virtual methods
422
419
  /**
@@ -653,15 +650,12 @@ export namespace Xed {
653
650
  // Signals
654
651
  /** @signal */
655
652
  connect<K extends keyof Document.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Document.SignalSignatures[K]>): number;
656
- connect(signal: string, callback: (...args: any[]) => any): number;
657
653
 
658
654
  /** @signal */
659
655
  connect_after<K extends keyof Document.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Document.SignalSignatures[K]>): number;
660
- connect_after(signal: string, callback: (...args: any[]) => any): number;
661
656
 
662
657
  /** @signal */
663
- emit<K extends keyof Document.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Document.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
664
- emit(signal: string, ...args: any[]): void;
658
+ emit<K extends keyof Document.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Document.SignalSignatures[K]>): void;
665
659
 
666
660
  // Virtual methods
667
661
  /**
@@ -911,15 +905,12 @@ export namespace Xed {
911
905
  // Signals
912
906
  /** @signal */
913
907
  connect<K extends keyof EncodingsComboBox.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, EncodingsComboBox.SignalSignatures[K]>): number;
914
- connect(signal: string, callback: (...args: any[]) => any): number;
915
908
 
916
909
  /** @signal */
917
910
  connect_after<K extends keyof EncodingsComboBox.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, EncodingsComboBox.SignalSignatures[K]>): number;
918
- connect_after(signal: string, callback: (...args: any[]) => any): number;
919
911
 
920
912
  /** @signal */
921
- emit<K extends keyof EncodingsComboBox.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<EncodingsComboBox.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
922
- emit(signal: string, ...args: any[]): void;
913
+ emit<K extends keyof EncodingsComboBox.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<EncodingsComboBox.SignalSignatures[K]>): void;
923
914
 
924
915
  // Methods
925
916
  /**
@@ -1356,15 +1347,12 @@ export namespace Xed {
1356
1347
  // Signals
1357
1348
  /** @signal */
1358
1349
  connect<K extends keyof FileChooserDialog.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, FileChooserDialog.SignalSignatures[K]>): number;
1359
- connect(signal: string, callback: (...args: any[]) => any): number;
1360
1350
 
1361
1351
  /** @signal */
1362
1352
  connect_after<K extends keyof FileChooserDialog.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, FileChooserDialog.SignalSignatures[K]>): number;
1363
- connect_after(signal: string, callback: (...args: any[]) => any): number;
1364
1353
 
1365
1354
  /** @signal */
1366
- emit<K extends keyof FileChooserDialog.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<FileChooserDialog.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
1367
- emit(signal: string, ...args: any[]): void;
1355
+ emit<K extends keyof FileChooserDialog.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<FileChooserDialog.SignalSignatures[K]>): void;
1368
1356
 
1369
1357
  // Methods
1370
1358
  get_encoding(): GtkSource.Encoding;
@@ -2321,15 +2309,12 @@ export namespace Xed {
2321
2309
  // Signals
2322
2310
  /** @signal */
2323
2311
  connect<K extends keyof Message.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Message.SignalSignatures[K]>): number;
2324
- connect(signal: string, callback: (...args: any[]) => any): number;
2325
2312
 
2326
2313
  /** @signal */
2327
2314
  connect_after<K extends keyof Message.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Message.SignalSignatures[K]>): number;
2328
- connect_after(signal: string, callback: (...args: any[]) => any): number;
2329
2315
 
2330
2316
  /** @signal */
2331
- emit<K extends keyof Message.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Message.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
2332
- emit(signal: string, ...args: any[]): void;
2317
+ emit<K extends keyof Message.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Message.SignalSignatures[K]>): void;
2333
2318
 
2334
2319
  // Methods
2335
2320
  /**
@@ -2446,15 +2431,12 @@ export namespace Xed {
2446
2431
  // Signals
2447
2432
  /** @signal */
2448
2433
  connect<K extends keyof MessageBus.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MessageBus.SignalSignatures[K]>): number;
2449
- connect(signal: string, callback: (...args: any[]) => any): number;
2450
2434
 
2451
2435
  /** @signal */
2452
2436
  connect_after<K extends keyof MessageBus.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MessageBus.SignalSignatures[K]>): number;
2453
- connect_after(signal: string, callback: (...args: any[]) => any): number;
2454
2437
 
2455
2438
  /** @signal */
2456
- emit<K extends keyof MessageBus.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MessageBus.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
2457
- emit(signal: string, ...args: any[]): void;
2439
+ emit<K extends keyof MessageBus.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MessageBus.SignalSignatures[K]>): void;
2458
2440
 
2459
2441
  // Static methods
2460
2442
  /**
@@ -2717,15 +2699,12 @@ export namespace Xed {
2717
2699
  // Signals
2718
2700
  /** @signal */
2719
2701
  connect<K extends keyof Notebook.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Notebook.SignalSignatures[K]>): number;
2720
- connect(signal: string, callback: (...args: any[]) => any): number;
2721
2702
 
2722
2703
  /** @signal */
2723
2704
  connect_after<K extends keyof Notebook.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Notebook.SignalSignatures[K]>): number;
2724
- connect_after(signal: string, callback: (...args: any[]) => any): number;
2725
2705
 
2726
2706
  /** @signal */
2727
- emit<K extends keyof Notebook.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Notebook.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
2728
- emit(signal: string, ...args: any[]): void;
2707
+ emit<K extends keyof Notebook.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Notebook.SignalSignatures[K]>): void;
2729
2708
 
2730
2709
  // Virtual methods
2731
2710
  /**
@@ -2950,15 +2929,12 @@ export namespace Xed {
2950
2929
  // Signals
2951
2930
  /** @signal */
2952
2931
  connect<K extends keyof Panel.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Panel.SignalSignatures[K]>): number;
2953
- connect(signal: string, callback: (...args: any[]) => any): number;
2954
2932
 
2955
2933
  /** @signal */
2956
2934
  connect_after<K extends keyof Panel.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Panel.SignalSignatures[K]>): number;
2957
- connect_after(signal: string, callback: (...args: any[]) => any): number;
2958
2935
 
2959
2936
  /** @signal */
2960
- emit<K extends keyof Panel.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Panel.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
2961
- emit(signal: string, ...args: any[]): void;
2937
+ emit<K extends keyof Panel.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Panel.SignalSignatures[K]>): void;
2962
2938
 
2963
2939
  // Virtual methods
2964
2940
  /**
@@ -3130,15 +3106,12 @@ export namespace Xed {
3130
3106
  // Signals
3131
3107
  /** @signal */
3132
3108
  connect<K extends keyof ProgressInfoBar.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ProgressInfoBar.SignalSignatures[K]>): number;
3133
- connect(signal: string, callback: (...args: any[]) => any): number;
3134
3109
 
3135
3110
  /** @signal */
3136
3111
  connect_after<K extends keyof ProgressInfoBar.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ProgressInfoBar.SignalSignatures[K]>): number;
3137
- connect_after(signal: string, callback: (...args: any[]) => any): number;
3138
3112
 
3139
3113
  /** @signal */
3140
- emit<K extends keyof ProgressInfoBar.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ProgressInfoBar.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
3141
- emit(signal: string, ...args: any[]): void;
3114
+ emit<K extends keyof ProgressInfoBar.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ProgressInfoBar.SignalSignatures[K]>): void;
3142
3115
 
3143
3116
  // Methods
3144
3117
  pulse(): void;
@@ -3253,15 +3226,12 @@ export namespace Xed {
3253
3226
  // Signals
3254
3227
  /** @signal */
3255
3228
  connect<K extends keyof Searchbar.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Searchbar.SignalSignatures[K]>): number;
3256
- connect(signal: string, callback: (...args: any[]) => any): number;
3257
3229
 
3258
3230
  /** @signal */
3259
3231
  connect_after<K extends keyof Searchbar.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Searchbar.SignalSignatures[K]>): number;
3260
- connect_after(signal: string, callback: (...args: any[]) => any): number;
3261
3232
 
3262
3233
  /** @signal */
3263
- emit<K extends keyof Searchbar.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Searchbar.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
3264
- emit(signal: string, ...args: any[]): void;
3234
+ emit<K extends keyof Searchbar.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Searchbar.SignalSignatures[K]>): void;
3265
3235
 
3266
3236
  // Virtual methods
3267
3237
  /**
@@ -3416,15 +3386,12 @@ export namespace Xed {
3416
3386
  // Signals
3417
3387
  /** @signal */
3418
3388
  connect<K extends keyof Statusbar.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Statusbar.SignalSignatures[K]>): number;
3419
- connect(signal: string, callback: (...args: any[]) => any): number;
3420
3389
 
3421
3390
  /** @signal */
3422
3391
  connect_after<K extends keyof Statusbar.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Statusbar.SignalSignatures[K]>): number;
3423
- connect_after(signal: string, callback: (...args: any[]) => any): number;
3424
3392
 
3425
3393
  /** @signal */
3426
- emit<K extends keyof Statusbar.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Statusbar.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
3427
- emit(signal: string, ...args: any[]): void;
3394
+ emit<K extends keyof Statusbar.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Statusbar.SignalSignatures[K]>): void;
3428
3395
 
3429
3396
  // Methods
3430
3397
  clear_overwrite(): void;
@@ -3585,15 +3552,12 @@ export namespace Xed {
3585
3552
  // Signals
3586
3553
  /** @signal */
3587
3554
  connect<K extends keyof Tab.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Tab.SignalSignatures[K]>): number;
3588
- connect(signal: string, callback: (...args: any[]) => any): number;
3589
3555
 
3590
3556
  /** @signal */
3591
3557
  connect_after<K extends keyof Tab.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Tab.SignalSignatures[K]>): number;
3592
- connect_after(signal: string, callback: (...args: any[]) => any): number;
3593
3558
 
3594
3559
  /** @signal */
3595
- emit<K extends keyof Tab.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Tab.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
3596
- emit(signal: string, ...args: any[]): void;
3560
+ emit<K extends keyof Tab.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Tab.SignalSignatures[K]>): void;
3597
3561
 
3598
3562
  // Static methods
3599
3563
  /**
@@ -3806,15 +3770,12 @@ export namespace Xed {
3806
3770
  // Signals
3807
3771
  /** @signal */
3808
3772
  connect<K extends keyof View.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, View.SignalSignatures[K]>): number;
3809
- connect(signal: string, callback: (...args: any[]) => any): number;
3810
3773
 
3811
3774
  /** @signal */
3812
3775
  connect_after<K extends keyof View.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, View.SignalSignatures[K]>): number;
3813
- connect_after(signal: string, callback: (...args: any[]) => any): number;
3814
3776
 
3815
3777
  /** @signal */
3816
- emit<K extends keyof View.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<View.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
3817
- emit(signal: string, ...args: any[]): void;
3778
+ emit<K extends keyof View.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<View.SignalSignatures[K]>): void;
3818
3779
 
3819
3780
  // Virtual methods
3820
3781
  /**
@@ -4024,15 +3985,12 @@ export namespace Xed {
4024
3985
  // Signals
4025
3986
  /** @signal */
4026
3987
  connect<K extends keyof Window.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Window.SignalSignatures[K]>): number;
4027
- connect(signal: string, callback: (...args: any[]) => any): number;
4028
3988
 
4029
3989
  /** @signal */
4030
3990
  connect_after<K extends keyof Window.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Window.SignalSignatures[K]>): number;
4031
- connect_after(signal: string, callback: (...args: any[]) => any): number;
4032
3991
 
4033
3992
  /** @signal */
4034
- emit<K extends keyof Window.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Window.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
4035
- emit(signal: string, ...args: any[]): void;
3993
+ emit<K extends keyof Window.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Window.SignalSignatures[K]>): void;
4036
3994
 
4037
3995
  // Virtual methods
4038
3996
  /**