@girs/javascriptcore-4.0 2.46.5-4.0.0-beta.21 → 2.47.2-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 +1 -1
- package/javascriptcore-4.0.d.ts +188 -10
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for JavaScriptCore-4.0, generated from library version 2.
|
|
8
|
+
GJS TypeScript type definitions for JavaScriptCore-4.0, generated from library version 2.47.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.24.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/javascriptcore-4.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 GObject from '@girs/gobject-2.0';
|
|
12
14
|
import type GLib from '@girs/glib-2.0';
|
|
@@ -417,6 +419,13 @@ export namespace JavaScriptCore {
|
|
|
417
419
|
WRITABLE,
|
|
418
420
|
}
|
|
419
421
|
namespace Class {
|
|
422
|
+
// Signal signatures
|
|
423
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
424
|
+
'notify::context': (pspec: GObject.ParamSpec) => void;
|
|
425
|
+
'notify::name': (pspec: GObject.ParamSpec) => void;
|
|
426
|
+
'notify::parent': (pspec: GObject.ParamSpec) => void;
|
|
427
|
+
}
|
|
428
|
+
|
|
420
429
|
// Constructor properties interface
|
|
421
430
|
|
|
422
431
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -451,12 +460,39 @@ export namespace JavaScriptCore {
|
|
|
451
460
|
*/
|
|
452
461
|
get parent(): Class;
|
|
453
462
|
|
|
463
|
+
/**
|
|
464
|
+
* Compile-time signal type information.
|
|
465
|
+
*
|
|
466
|
+
* This instance property is generated only for TypeScript type checking.
|
|
467
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
468
|
+
* @internal
|
|
469
|
+
*/
|
|
470
|
+
$signals: Class.SignalSignatures;
|
|
471
|
+
|
|
454
472
|
// Constructors
|
|
455
473
|
|
|
456
474
|
constructor(properties?: Partial<Class.ConstructorProps>, ...args: any[]);
|
|
457
475
|
|
|
458
476
|
_init(...args: any[]): void;
|
|
459
477
|
|
|
478
|
+
// Signals
|
|
479
|
+
|
|
480
|
+
connect<K extends keyof Class.SignalSignatures>(
|
|
481
|
+
signal: K,
|
|
482
|
+
callback: GObject.SignalCallback<this, Class.SignalSignatures[K]>,
|
|
483
|
+
): number;
|
|
484
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
485
|
+
connect_after<K extends keyof Class.SignalSignatures>(
|
|
486
|
+
signal: K,
|
|
487
|
+
callback: GObject.SignalCallback<this, Class.SignalSignatures[K]>,
|
|
488
|
+
): number;
|
|
489
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
490
|
+
emit<K extends keyof Class.SignalSignatures>(
|
|
491
|
+
signal: K,
|
|
492
|
+
...args: GObject.GjsParameters<Class.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
493
|
+
): void;
|
|
494
|
+
emit(signal: string, ...args: any[]): void;
|
|
495
|
+
|
|
460
496
|
// Methods
|
|
461
497
|
|
|
462
498
|
/**
|
|
@@ -588,6 +624,11 @@ export namespace JavaScriptCore {
|
|
|
588
624
|
}
|
|
589
625
|
|
|
590
626
|
namespace Context {
|
|
627
|
+
// Signal signatures
|
|
628
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
629
|
+
'notify::virtual-machine': (pspec: GObject.ParamSpec) => void;
|
|
630
|
+
}
|
|
631
|
+
|
|
591
632
|
// Constructor properties interface
|
|
592
633
|
|
|
593
634
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -619,6 +660,15 @@ export namespace JavaScriptCore {
|
|
|
619
660
|
*/
|
|
620
661
|
get virtualMachine(): VirtualMachine;
|
|
621
662
|
|
|
663
|
+
/**
|
|
664
|
+
* Compile-time signal type information.
|
|
665
|
+
*
|
|
666
|
+
* This instance property is generated only for TypeScript type checking.
|
|
667
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
668
|
+
* @internal
|
|
669
|
+
*/
|
|
670
|
+
$signals: Context.SignalSignatures;
|
|
671
|
+
|
|
622
672
|
// Constructors
|
|
623
673
|
|
|
624
674
|
constructor(properties?: Partial<Context.ConstructorProps>, ...args: any[]);
|
|
@@ -629,6 +679,24 @@ export namespace JavaScriptCore {
|
|
|
629
679
|
|
|
630
680
|
static new_with_virtual_machine(vm: VirtualMachine): Context;
|
|
631
681
|
|
|
682
|
+
// Signals
|
|
683
|
+
|
|
684
|
+
connect<K extends keyof Context.SignalSignatures>(
|
|
685
|
+
signal: K,
|
|
686
|
+
callback: GObject.SignalCallback<this, Context.SignalSignatures[K]>,
|
|
687
|
+
): number;
|
|
688
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
689
|
+
connect_after<K extends keyof Context.SignalSignatures>(
|
|
690
|
+
signal: K,
|
|
691
|
+
callback: GObject.SignalCallback<this, Context.SignalSignatures[K]>,
|
|
692
|
+
): number;
|
|
693
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
694
|
+
emit<K extends keyof Context.SignalSignatures>(
|
|
695
|
+
signal: K,
|
|
696
|
+
...args: GObject.GjsParameters<Context.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
697
|
+
): void;
|
|
698
|
+
emit(signal: string, ...args: any[]): void;
|
|
699
|
+
|
|
632
700
|
// Static methods
|
|
633
701
|
|
|
634
702
|
/**
|
|
@@ -787,6 +855,9 @@ export namespace JavaScriptCore {
|
|
|
787
855
|
}
|
|
788
856
|
|
|
789
857
|
namespace Exception {
|
|
858
|
+
// Signal signatures
|
|
859
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
860
|
+
|
|
790
861
|
// Constructor properties interface
|
|
791
862
|
|
|
792
863
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -798,6 +869,15 @@ export namespace JavaScriptCore {
|
|
|
798
869
|
class Exception extends GObject.Object {
|
|
799
870
|
static $gtype: GObject.GType<Exception>;
|
|
800
871
|
|
|
872
|
+
/**
|
|
873
|
+
* Compile-time signal type information.
|
|
874
|
+
*
|
|
875
|
+
* This instance property is generated only for TypeScript type checking.
|
|
876
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
877
|
+
* @internal
|
|
878
|
+
*/
|
|
879
|
+
$signals: Exception.SignalSignatures;
|
|
880
|
+
|
|
801
881
|
// Constructors
|
|
802
882
|
|
|
803
883
|
constructor(properties?: Partial<Exception.ConstructorProps>, ...args: any[]);
|
|
@@ -808,6 +888,24 @@ export namespace JavaScriptCore {
|
|
|
808
888
|
|
|
809
889
|
static new_with_name(context: Context, name: string, message: string): Exception;
|
|
810
890
|
|
|
891
|
+
// Signals
|
|
892
|
+
|
|
893
|
+
connect<K extends keyof Exception.SignalSignatures>(
|
|
894
|
+
signal: K,
|
|
895
|
+
callback: GObject.SignalCallback<this, Exception.SignalSignatures[K]>,
|
|
896
|
+
): number;
|
|
897
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
898
|
+
connect_after<K extends keyof Exception.SignalSignatures>(
|
|
899
|
+
signal: K,
|
|
900
|
+
callback: GObject.SignalCallback<this, Exception.SignalSignatures[K]>,
|
|
901
|
+
): number;
|
|
902
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
903
|
+
emit<K extends keyof Exception.SignalSignatures>(
|
|
904
|
+
signal: K,
|
|
905
|
+
...args: GObject.GjsParameters<Exception.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
906
|
+
): void;
|
|
907
|
+
emit(signal: string, ...args: any[]): void;
|
|
908
|
+
|
|
811
909
|
// Methods
|
|
812
910
|
|
|
813
911
|
/**
|
|
@@ -854,6 +952,11 @@ export namespace JavaScriptCore {
|
|
|
854
952
|
}
|
|
855
953
|
|
|
856
954
|
namespace Value {
|
|
955
|
+
// Signal signatures
|
|
956
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
957
|
+
'notify::context': (pspec: GObject.ParamSpec) => void;
|
|
958
|
+
}
|
|
959
|
+
|
|
857
960
|
// Constructor properties interface
|
|
858
961
|
|
|
859
962
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
@@ -875,6 +978,15 @@ export namespace JavaScriptCore {
|
|
|
875
978
|
*/
|
|
876
979
|
get context(): Context;
|
|
877
980
|
|
|
981
|
+
/**
|
|
982
|
+
* Compile-time signal type information.
|
|
983
|
+
*
|
|
984
|
+
* This instance property is generated only for TypeScript type checking.
|
|
985
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
986
|
+
* @internal
|
|
987
|
+
*/
|
|
988
|
+
$signals: Value.SignalSignatures;
|
|
989
|
+
|
|
878
990
|
// Constructors
|
|
879
991
|
|
|
880
992
|
constructor(properties?: Partial<Value.ConstructorProps>, ...args: any[]);
|
|
@@ -927,6 +1039,24 @@ export namespace JavaScriptCore {
|
|
|
927
1039
|
|
|
928
1040
|
static new_undefined(context: Context): Value;
|
|
929
1041
|
|
|
1042
|
+
// Signals
|
|
1043
|
+
|
|
1044
|
+
connect<K extends keyof Value.SignalSignatures>(
|
|
1045
|
+
signal: K,
|
|
1046
|
+
callback: GObject.SignalCallback<this, Value.SignalSignatures[K]>,
|
|
1047
|
+
): number;
|
|
1048
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1049
|
+
connect_after<K extends keyof Value.SignalSignatures>(
|
|
1050
|
+
signal: K,
|
|
1051
|
+
callback: GObject.SignalCallback<this, Value.SignalSignatures[K]>,
|
|
1052
|
+
): number;
|
|
1053
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1054
|
+
emit<K extends keyof Value.SignalSignatures>(
|
|
1055
|
+
signal: K,
|
|
1056
|
+
...args: GObject.GjsParameters<Value.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1057
|
+
): void;
|
|
1058
|
+
emit(signal: string, ...args: any[]): void;
|
|
1059
|
+
|
|
930
1060
|
// Methods
|
|
931
1061
|
|
|
932
1062
|
/**
|
|
@@ -1250,6 +1380,9 @@ export namespace JavaScriptCore {
|
|
|
1250
1380
|
}
|
|
1251
1381
|
|
|
1252
1382
|
namespace VirtualMachine {
|
|
1383
|
+
// Signal signatures
|
|
1384
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
1385
|
+
|
|
1253
1386
|
// Constructor properties interface
|
|
1254
1387
|
|
|
1255
1388
|
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
@@ -1266,6 +1399,15 @@ export namespace JavaScriptCore {
|
|
|
1266
1399
|
class VirtualMachine extends GObject.Object {
|
|
1267
1400
|
static $gtype: GObject.GType<VirtualMachine>;
|
|
1268
1401
|
|
|
1402
|
+
/**
|
|
1403
|
+
* Compile-time signal type information.
|
|
1404
|
+
*
|
|
1405
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1406
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1407
|
+
* @internal
|
|
1408
|
+
*/
|
|
1409
|
+
$signals: VirtualMachine.SignalSignatures;
|
|
1410
|
+
|
|
1269
1411
|
// Constructors
|
|
1270
1412
|
|
|
1271
1413
|
constructor(properties?: Partial<VirtualMachine.ConstructorProps>, ...args: any[]);
|
|
@@ -1273,13 +1415,31 @@ export namespace JavaScriptCore {
|
|
|
1273
1415
|
_init(...args: any[]): void;
|
|
1274
1416
|
|
|
1275
1417
|
static ['new'](): VirtualMachine;
|
|
1418
|
+
|
|
1419
|
+
// Signals
|
|
1420
|
+
|
|
1421
|
+
connect<K extends keyof VirtualMachine.SignalSignatures>(
|
|
1422
|
+
signal: K,
|
|
1423
|
+
callback: GObject.SignalCallback<this, VirtualMachine.SignalSignatures[K]>,
|
|
1424
|
+
): number;
|
|
1425
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1426
|
+
connect_after<K extends keyof VirtualMachine.SignalSignatures>(
|
|
1427
|
+
signal: K,
|
|
1428
|
+
callback: GObject.SignalCallback<this, VirtualMachine.SignalSignatures[K]>,
|
|
1429
|
+
): number;
|
|
1430
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1431
|
+
emit<K extends keyof VirtualMachine.SignalSignatures>(
|
|
1432
|
+
signal: K,
|
|
1433
|
+
...args: GObject.GjsParameters<VirtualMachine.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1434
|
+
): void;
|
|
1435
|
+
emit(signal: string, ...args: any[]): void;
|
|
1276
1436
|
}
|
|
1277
1437
|
|
|
1278
1438
|
namespace WeakValue {
|
|
1279
|
-
// Signal
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
(
|
|
1439
|
+
// Signal signatures
|
|
1440
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1441
|
+
cleared: () => void;
|
|
1442
|
+
'notify::value': (pspec: GObject.ParamSpec) => void;
|
|
1283
1443
|
}
|
|
1284
1444
|
|
|
1285
1445
|
// Constructor properties interface
|
|
@@ -1304,6 +1464,15 @@ export namespace JavaScriptCore {
|
|
|
1304
1464
|
*/
|
|
1305
1465
|
set value(val: Value);
|
|
1306
1466
|
|
|
1467
|
+
/**
|
|
1468
|
+
* Compile-time signal type information.
|
|
1469
|
+
*
|
|
1470
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1471
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1472
|
+
* @internal
|
|
1473
|
+
*/
|
|
1474
|
+
$signals: WeakValue.SignalSignatures;
|
|
1475
|
+
|
|
1307
1476
|
// Constructors
|
|
1308
1477
|
|
|
1309
1478
|
constructor(properties?: Partial<WeakValue.ConstructorProps>, ...args: any[]);
|
|
@@ -1314,12 +1483,21 @@ export namespace JavaScriptCore {
|
|
|
1314
1483
|
|
|
1315
1484
|
// Signals
|
|
1316
1485
|
|
|
1317
|
-
connect
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1486
|
+
connect<K extends keyof WeakValue.SignalSignatures>(
|
|
1487
|
+
signal: K,
|
|
1488
|
+
callback: GObject.SignalCallback<this, WeakValue.SignalSignatures[K]>,
|
|
1489
|
+
): number;
|
|
1490
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1491
|
+
connect_after<K extends keyof WeakValue.SignalSignatures>(
|
|
1492
|
+
signal: K,
|
|
1493
|
+
callback: GObject.SignalCallback<this, WeakValue.SignalSignatures[K]>,
|
|
1494
|
+
): number;
|
|
1495
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1496
|
+
emit<K extends keyof WeakValue.SignalSignatures>(
|
|
1497
|
+
signal: K,
|
|
1498
|
+
...args: GObject.GjsParameters<WeakValue.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never
|
|
1499
|
+
): void;
|
|
1500
|
+
emit(signal: string, ...args: any[]): void;
|
|
1323
1501
|
|
|
1324
1502
|
// Methods
|
|
1325
1503
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/javascriptcore-4.0",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "GJS TypeScript type definitions for JavaScriptCore-4.0, generated from library version 2.
|
|
3
|
+
"version": "2.47.2-4.0.0-beta.24",
|
|
4
|
+
"description": "GJS TypeScript type definitions for JavaScriptCore-4.0, generated from library version 2.47.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "javascriptcore-4.0.js",
|
|
7
7
|
"main": "javascriptcore-4.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.
|
|
35
|
-
"@girs/glib-2.0": "^2.
|
|
36
|
-
"@girs/gobject-2.0": "^2.
|
|
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": "*"
|