@girs/javascriptcore-4.1 2.46.0-4.0.0-beta.20 → 2.48.0-4.0.0-beta.23
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.1.d.ts +7 -0
- 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.1, generated from library version 2.
|
|
8
|
+
GJS TypeScript type definitions for JavaScriptCore-4.1, generated from library version 2.48.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.23.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/javascriptcore-4.1.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';
|
|
@@ -383,6 +385,9 @@ export namespace JavaScriptCore {
|
|
|
383
385
|
interface ExceptionHandler {
|
|
384
386
|
(context: Context, exception: Exception): void;
|
|
385
387
|
}
|
|
388
|
+
interface Executor {
|
|
389
|
+
(resolve: Value, reject: Value): void;
|
|
390
|
+
}
|
|
386
391
|
interface OptionsFunc {
|
|
387
392
|
(option: string, type: OptionType, description?: string | null): boolean;
|
|
388
393
|
}
|
|
@@ -919,6 +924,8 @@ export namespace JavaScriptCore {
|
|
|
919
924
|
|
|
920
925
|
static new_object(context: Context, instance?: any | null, jsc_class?: Class | null): Value;
|
|
921
926
|
|
|
927
|
+
static new_promise(context: Context, executor: Executor): Value;
|
|
928
|
+
|
|
922
929
|
static new_string(context: Context, string?: string | null): Value;
|
|
923
930
|
|
|
924
931
|
static new_string_from_bytes(context: Context, bytes?: GLib.Bytes | null): Value;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/javascriptcore-4.1",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "GJS TypeScript type definitions for JavaScriptCore-4.1, generated from library version 2.
|
|
3
|
+
"version": "2.48.0-4.0.0-beta.23",
|
|
4
|
+
"description": "GJS TypeScript type definitions for JavaScriptCore-4.1, generated from library version 2.48.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "javascriptcore-4.1.js",
|
|
7
7
|
"main": "javascriptcore-4.1.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.23",
|
|
35
|
+
"@girs/glib-2.0": "^2.84.0-4.0.0-beta.23",
|
|
36
|
+
"@girs/gobject-2.0": "^2.84.0-4.0.0-beta.23"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "*"
|