girgen 0.3.16 → 0.3.18
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 +5 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,13 +18,13 @@ cargo install girgen --root .
|
|
|
18
18
|
./bin/girgen --help
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
## TypeScript
|
|
21
|
+
## GJS TypeScript
|
|
22
22
|
|
|
23
23
|
Generate a standalone package that contains every namespace found in the given
|
|
24
24
|
directories.
|
|
25
25
|
|
|
26
26
|
```sh
|
|
27
|
-
girgen
|
|
27
|
+
girgen gjs --help
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
> [!TIP]
|
|
@@ -34,7 +34,7 @@ girgen typescript --help
|
|
|
34
34
|
>
|
|
35
35
|
> ```sh
|
|
36
36
|
> flatpak run --command=cp --filesystem=home org.gnome.Sdk -r /usr/share/gir-1.0 gir-1.0
|
|
37
|
-
> girgen -d gir-1.0
|
|
37
|
+
> girgen -d gir-1.0 gjs
|
|
38
38
|
> ```
|
|
39
39
|
|
|
40
40
|
By default it will generate the package to `.types/gi` which you can then source
|
|
@@ -63,7 +63,7 @@ Note that when using `--alias` flag to generate non version imports such as
|
|
|
63
63
|
end up as a union of the two versions.
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
girgen
|
|
66
|
+
girgen gjs -i Gtk-3.0 --alias
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
### TypeScript Annotations
|
|
@@ -233,7 +233,7 @@ declare module "gi://Gio?version=2.0" {
|
|
|
233
233
|
count: number,
|
|
234
234
|
io_priority: number,
|
|
235
235
|
cancellable: Gio.Cancellable | null,
|
|
236
|
-
): GLib.Bytes
|
|
236
|
+
): Promise<GLib.Bytes>
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "girgen",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"author": "Aylur",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"@types/node": "latest"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@girgen/linux-x64": "0.3.
|
|
37
|
-
"@girgen/linux-arm64": "0.3.
|
|
36
|
+
"@girgen/linux-x64": "0.3.17",
|
|
37
|
+
"@girgen/linux-arm64": "0.3.17"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"bin"
|