@girs/gjs 3.2.5 → 3.2.7
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/dom.d.ts +9 -0
- package/gjs.d.cts +1 -1
- package/gjs.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
GJS TypeScript type definitions for Gjs using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
7
|
+
GJS TypeScript type definitions for Gjs using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
|
|
8
8
|
|
|
9
9
|
[GJS](https://gitlab.gnome.org/GNOME/gjs) is a JavaScript runtime for the GNOME ecosystem. Using GJS and the type definitions in this NPM package, you can build GTK applications in JavaScript or TypeScript with type checking, better autocompletion and inline documentations.
|
|
10
10
|
|
package/dom.d.ts
CHANGED
|
@@ -12,6 +12,15 @@ import type GLib from '@girs/glib-2.0';
|
|
|
12
12
|
|
|
13
13
|
declare global {
|
|
14
14
|
|
|
15
|
+
interface ImportMeta {
|
|
16
|
+
/**
|
|
17
|
+
* The absolute file: or resource: URL of the module.
|
|
18
|
+
*
|
|
19
|
+
* @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/ESModules.md#importmetaurl
|
|
20
|
+
*/
|
|
21
|
+
readonly url: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
15
24
|
// Timers
|
|
16
25
|
// See https://gitlab.gnome.org/GNOME/gjs/-/blob/master/modules/esm/_timers.js
|
|
17
26
|
|
package/gjs.d.cts
CHANGED
|
@@ -69,7 +69,7 @@ declare namespace byteArray {
|
|
|
69
69
|
/** @deprecated Use {@link GLib.Bytes.toArray} instead */
|
|
70
70
|
export function fromGBytes(input: GLib.Bytes): Uint8Array
|
|
71
71
|
|
|
72
|
-
/** @deprecated Use {@link
|
|
72
|
+
/** @deprecated Use {@link TextDecoder.decode} instead */
|
|
73
73
|
export function toString(x: Uint8Array, encoding?: TextDecoderEncoding): string
|
|
74
74
|
|
|
75
75
|
/** @deprecated Use {@link GLib.Bytes new GLib.Bytes() } instead */
|
package/gjs.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare namespace byteArray {
|
|
|
69
69
|
/** @deprecated Use {@link GLib.Bytes.toArray} instead */
|
|
70
70
|
export function fromGBytes(input: GLib.Bytes): Uint8Array
|
|
71
71
|
|
|
72
|
-
/** @deprecated Use {@link
|
|
72
|
+
/** @deprecated Use {@link TextDecoder.decode} instead */
|
|
73
73
|
export function toString(x: Uint8Array, encoding?: TextDecoderEncoding): string
|
|
74
74
|
|
|
75
75
|
/** @deprecated Use {@link GLib.Bytes new GLib.Bytes() } instead */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gjs",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gjs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gjs.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gjs.d.cts"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
59
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
58
|
+
"@girs/glib-2.0": "^2.78.0-3.2.7",
|
|
59
|
+
"@girs/gobject-2.0": "^2.78.0-3.2.7"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"typescript": "*"
|