@girs/javascriptcore-6.0 2.47.3-4.0.0-beta.21 → 2.48.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/javascriptcore-6.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for JavaScriptCore-6.0, generated from library version 2.47.3 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.21.
8
+ GJS TypeScript type definitions for JavaScriptCore-6.0, generated from library version 2.48.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 GObject from '@girs/gobject-2.0';
12
14
  import type GLib from '@girs/glib-2.0';
@@ -420,6 +422,13 @@ export namespace JavaScriptCore {
420
422
  WRITABLE,
421
423
  }
422
424
  namespace Class {
425
+ // Signal signatures
426
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
427
+ 'notify::context': (pspec: GObject.ParamSpec) => void;
428
+ 'notify::name': (pspec: GObject.ParamSpec) => void;
429
+ 'notify::parent': (pspec: GObject.ParamSpec) => void;
430
+ }
431
+
423
432
  // Constructor properties interface
424
433
 
425
434
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -454,12 +463,39 @@ export namespace JavaScriptCore {
454
463
  */
455
464
  get parent(): Class;
456
465
 
466
+ /**
467
+ * Compile-time signal type information.
468
+ *
469
+ * This instance property is generated only for TypeScript type checking.
470
+ * It is not defined at runtime and should not be accessed in JS code.
471
+ * @internal
472
+ */
473
+ $signals: Class.SignalSignatures;
474
+
457
475
  // Constructors
458
476
 
459
477
  constructor(properties?: Partial<Class.ConstructorProps>, ...args: any[]);
460
478
 
461
479
  _init(...args: any[]): void;
462
480
 
481
+ // Signals
482
+
483
+ connect<K extends keyof Class.SignalSignatures>(
484
+ signal: K,
485
+ callback: GObject.SignalCallback<this, Class.SignalSignatures[K]>,
486
+ ): number;
487
+ connect(signal: string, callback: (...args: any[]) => any): number;
488
+ connect_after<K extends keyof Class.SignalSignatures>(
489
+ signal: K,
490
+ callback: GObject.SignalCallback<this, Class.SignalSignatures[K]>,
491
+ ): number;
492
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
493
+ emit<K extends keyof Class.SignalSignatures>(
494
+ signal: K,
495
+ ...args: GObject.GjsParameters<Class.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
496
+ ): void;
497
+ emit(signal: string, ...args: any[]): void;
498
+
463
499
  // Methods
464
500
 
465
501
  /**
@@ -591,6 +627,11 @@ export namespace JavaScriptCore {
591
627
  }
592
628
 
593
629
  namespace Context {
630
+ // Signal signatures
631
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
632
+ 'notify::virtual-machine': (pspec: GObject.ParamSpec) => void;
633
+ }
634
+
594
635
  // Constructor properties interface
595
636
 
596
637
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -622,6 +663,15 @@ export namespace JavaScriptCore {
622
663
  */
623
664
  get virtualMachine(): VirtualMachine;
624
665
 
666
+ /**
667
+ * Compile-time signal type information.
668
+ *
669
+ * This instance property is generated only for TypeScript type checking.
670
+ * It is not defined at runtime and should not be accessed in JS code.
671
+ * @internal
672
+ */
673
+ $signals: Context.SignalSignatures;
674
+
625
675
  // Constructors
626
676
 
627
677
  constructor(properties?: Partial<Context.ConstructorProps>, ...args: any[]);
@@ -632,6 +682,24 @@ export namespace JavaScriptCore {
632
682
 
633
683
  static new_with_virtual_machine(vm: VirtualMachine): Context;
634
684
 
685
+ // Signals
686
+
687
+ connect<K extends keyof Context.SignalSignatures>(
688
+ signal: K,
689
+ callback: GObject.SignalCallback<this, Context.SignalSignatures[K]>,
690
+ ): number;
691
+ connect(signal: string, callback: (...args: any[]) => any): number;
692
+ connect_after<K extends keyof Context.SignalSignatures>(
693
+ signal: K,
694
+ callback: GObject.SignalCallback<this, Context.SignalSignatures[K]>,
695
+ ): number;
696
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
697
+ emit<K extends keyof Context.SignalSignatures>(
698
+ signal: K,
699
+ ...args: GObject.GjsParameters<Context.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
700
+ ): void;
701
+ emit(signal: string, ...args: any[]): void;
702
+
635
703
  // Static methods
636
704
 
637
705
  /**
@@ -790,6 +858,9 @@ export namespace JavaScriptCore {
790
858
  }
791
859
 
792
860
  namespace Exception {
861
+ // Signal signatures
862
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
863
+
793
864
  // Constructor properties interface
794
865
 
795
866
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -801,6 +872,15 @@ export namespace JavaScriptCore {
801
872
  class Exception extends GObject.Object {
802
873
  static $gtype: GObject.GType<Exception>;
803
874
 
875
+ /**
876
+ * Compile-time signal type information.
877
+ *
878
+ * This instance property is generated only for TypeScript type checking.
879
+ * It is not defined at runtime and should not be accessed in JS code.
880
+ * @internal
881
+ */
882
+ $signals: Exception.SignalSignatures;
883
+
804
884
  // Constructors
805
885
 
806
886
  constructor(properties?: Partial<Exception.ConstructorProps>, ...args: any[]);
@@ -811,6 +891,24 @@ export namespace JavaScriptCore {
811
891
 
812
892
  static new_with_name(context: Context, name: string, message: string): Exception;
813
893
 
894
+ // Signals
895
+
896
+ connect<K extends keyof Exception.SignalSignatures>(
897
+ signal: K,
898
+ callback: GObject.SignalCallback<this, Exception.SignalSignatures[K]>,
899
+ ): number;
900
+ connect(signal: string, callback: (...args: any[]) => any): number;
901
+ connect_after<K extends keyof Exception.SignalSignatures>(
902
+ signal: K,
903
+ callback: GObject.SignalCallback<this, Exception.SignalSignatures[K]>,
904
+ ): number;
905
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
906
+ emit<K extends keyof Exception.SignalSignatures>(
907
+ signal: K,
908
+ ...args: GObject.GjsParameters<Exception.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
909
+ ): void;
910
+ emit(signal: string, ...args: any[]): void;
911
+
814
912
  // Methods
815
913
 
816
914
  /**
@@ -857,6 +955,11 @@ export namespace JavaScriptCore {
857
955
  }
858
956
 
859
957
  namespace Value {
958
+ // Signal signatures
959
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
960
+ 'notify::context': (pspec: GObject.ParamSpec) => void;
961
+ }
962
+
860
963
  // Constructor properties interface
861
964
 
862
965
  interface ConstructorProps extends GObject.Object.ConstructorProps {
@@ -878,6 +981,15 @@ export namespace JavaScriptCore {
878
981
  */
879
982
  get context(): Context;
880
983
 
984
+ /**
985
+ * Compile-time signal type information.
986
+ *
987
+ * This instance property is generated only for TypeScript type checking.
988
+ * It is not defined at runtime and should not be accessed in JS code.
989
+ * @internal
990
+ */
991
+ $signals: Value.SignalSignatures;
992
+
881
993
  // Constructors
882
994
 
883
995
  constructor(properties?: Partial<Value.ConstructorProps>, ...args: any[]);
@@ -932,6 +1044,24 @@ export namespace JavaScriptCore {
932
1044
 
933
1045
  static new_undefined(context: Context): Value;
934
1046
 
1047
+ // Signals
1048
+
1049
+ connect<K extends keyof Value.SignalSignatures>(
1050
+ signal: K,
1051
+ callback: GObject.SignalCallback<this, Value.SignalSignatures[K]>,
1052
+ ): number;
1053
+ connect(signal: string, callback: (...args: any[]) => any): number;
1054
+ connect_after<K extends keyof Value.SignalSignatures>(
1055
+ signal: K,
1056
+ callback: GObject.SignalCallback<this, Value.SignalSignatures[K]>,
1057
+ ): number;
1058
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1059
+ emit<K extends keyof Value.SignalSignatures>(
1060
+ signal: K,
1061
+ ...args: GObject.GjsParameters<Value.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1062
+ ): void;
1063
+ emit(signal: string, ...args: any[]): void;
1064
+
935
1065
  // Methods
936
1066
 
937
1067
  /**
@@ -1255,6 +1385,9 @@ export namespace JavaScriptCore {
1255
1385
  }
1256
1386
 
1257
1387
  namespace VirtualMachine {
1388
+ // Signal signatures
1389
+ interface SignalSignatures extends GObject.Object.SignalSignatures {}
1390
+
1258
1391
  // Constructor properties interface
1259
1392
 
1260
1393
  interface ConstructorProps extends GObject.Object.ConstructorProps {}
@@ -1271,6 +1404,15 @@ export namespace JavaScriptCore {
1271
1404
  class VirtualMachine extends GObject.Object {
1272
1405
  static $gtype: GObject.GType<VirtualMachine>;
1273
1406
 
1407
+ /**
1408
+ * Compile-time signal type information.
1409
+ *
1410
+ * This instance property is generated only for TypeScript type checking.
1411
+ * It is not defined at runtime and should not be accessed in JS code.
1412
+ * @internal
1413
+ */
1414
+ $signals: VirtualMachine.SignalSignatures;
1415
+
1274
1416
  // Constructors
1275
1417
 
1276
1418
  constructor(properties?: Partial<VirtualMachine.ConstructorProps>, ...args: any[]);
@@ -1278,13 +1420,31 @@ export namespace JavaScriptCore {
1278
1420
  _init(...args: any[]): void;
1279
1421
 
1280
1422
  static ['new'](): VirtualMachine;
1423
+
1424
+ // Signals
1425
+
1426
+ connect<K extends keyof VirtualMachine.SignalSignatures>(
1427
+ signal: K,
1428
+ callback: GObject.SignalCallback<this, VirtualMachine.SignalSignatures[K]>,
1429
+ ): number;
1430
+ connect(signal: string, callback: (...args: any[]) => any): number;
1431
+ connect_after<K extends keyof VirtualMachine.SignalSignatures>(
1432
+ signal: K,
1433
+ callback: GObject.SignalCallback<this, VirtualMachine.SignalSignatures[K]>,
1434
+ ): number;
1435
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1436
+ emit<K extends keyof VirtualMachine.SignalSignatures>(
1437
+ signal: K,
1438
+ ...args: GObject.GjsParameters<VirtualMachine.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1439
+ ): void;
1440
+ emit(signal: string, ...args: any[]): void;
1281
1441
  }
1282
1442
 
1283
1443
  namespace WeakValue {
1284
- // Signal callback interfaces
1285
-
1286
- interface Cleared {
1287
- (): void;
1444
+ // Signal signatures
1445
+ interface SignalSignatures extends GObject.Object.SignalSignatures {
1446
+ cleared: () => void;
1447
+ 'notify::value': (pspec: GObject.ParamSpec) => void;
1288
1448
  }
1289
1449
 
1290
1450
  // Constructor properties interface
@@ -1309,6 +1469,15 @@ export namespace JavaScriptCore {
1309
1469
  */
1310
1470
  set value(val: Value);
1311
1471
 
1472
+ /**
1473
+ * Compile-time signal type information.
1474
+ *
1475
+ * This instance property is generated only for TypeScript type checking.
1476
+ * It is not defined at runtime and should not be accessed in JS code.
1477
+ * @internal
1478
+ */
1479
+ $signals: WeakValue.SignalSignatures;
1480
+
1312
1481
  // Constructors
1313
1482
 
1314
1483
  constructor(properties?: Partial<WeakValue.ConstructorProps>, ...args: any[]);
@@ -1319,12 +1488,21 @@ export namespace JavaScriptCore {
1319
1488
 
1320
1489
  // Signals
1321
1490
 
1322
- connect(id: string, callback: (...args: any[]) => any): number;
1323
- connect_after(id: string, callback: (...args: any[]) => any): number;
1324
- emit(id: string, ...args: any[]): void;
1325
- connect(signal: 'cleared', callback: (_source: this) => void): number;
1326
- connect_after(signal: 'cleared', callback: (_source: this) => void): number;
1327
- emit(signal: 'cleared'): void;
1491
+ connect<K extends keyof WeakValue.SignalSignatures>(
1492
+ signal: K,
1493
+ callback: GObject.SignalCallback<this, WeakValue.SignalSignatures[K]>,
1494
+ ): number;
1495
+ connect(signal: string, callback: (...args: any[]) => any): number;
1496
+ connect_after<K extends keyof WeakValue.SignalSignatures>(
1497
+ signal: K,
1498
+ callback: GObject.SignalCallback<this, WeakValue.SignalSignatures[K]>,
1499
+ ): number;
1500
+ connect_after(signal: string, callback: (...args: any[]) => any): number;
1501
+ emit<K extends keyof WeakValue.SignalSignatures>(
1502
+ signal: K,
1503
+ ...args: GObject.GjsParameters<WeakValue.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
1504
+ ): void;
1505
+ emit(signal: string, ...args: any[]): void;
1328
1506
 
1329
1507
  // Methods
1330
1508
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@girs/javascriptcore-6.0",
3
- "version": "2.47.3-4.0.0-beta.21",
4
- "description": "GJS TypeScript type definitions for JavaScriptCore-6.0, generated from library version 2.47.3",
3
+ "version": "2.48.0-4.0.0-beta.24",
4
+ "description": "GJS TypeScript type definitions for JavaScriptCore-6.0, generated from library version 2.48.0",
5
5
  "type": "module",
6
6
  "module": "javascriptcore-6.0.js",
7
7
  "main": "javascriptcore-6.0.js",
@@ -31,9 +31,9 @@
31
31
  "test": "tsc --project tsconfig.json"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/gjs": "^4.0.0-beta.21",
35
- "@girs/glib-2.0": "^2.83.3-4.0.0-beta.21",
36
- "@girs/gobject-2.0": "^2.83.3-4.0.0-beta.21"
34
+ "@girs/gjs": "^4.0.0-beta.24",
35
+ "@girs/glib-2.0": "^2.84.2-4.0.0-beta.24",
36
+ "@girs/gobject-2.0": "^2.84.2-4.0.0-beta.24"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "*"