@girs/meta-3 4.1.0 → 4.3.0
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 +8 -8
- package/meta-3.d.ts +25 -2
- package/package.json +23 -23
package/README.md
CHANGED
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Meta-3, generated from library version 3.30.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.
|
|
8
|
+
GJS TypeScript type definitions for Meta-3, generated from library version 3.30.2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.3.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Install the type definitions with npm:
|
|
13
13
|
```bash
|
|
14
14
|
npm install @girs/meta-3
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Import it like any other module:
|
|
20
20
|
```ts
|
|
21
21
|
import Meta from '@girs/meta-3';
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Ambient Modules
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
[Ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules) let you write the same import you would in plain JavaScript.
|
|
27
27
|
For this you need to include `@girs/meta-3` or `@girs/meta-3/ambient` in your `tsconfig` or entry point Typescript file:
|
|
28
28
|
|
|
29
29
|
`index.ts`:
|
|
@@ -42,7 +42,7 @@ import '@girs/meta-3'
|
|
|
42
42
|
}
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The ambient module now resolves with types:
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import Meta from 'gi://Meta?version=3';
|
|
@@ -50,7 +50,7 @@ import Meta from 'gi://Meta?version=3';
|
|
|
50
50
|
|
|
51
51
|
### Global import
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
GJS's global `imports.gi` works too, with types.
|
|
54
54
|
For this you need to include `@girs/meta-3` or `@girs/meta-3/import` in your `tsconfig` or entry point Typescript file:
|
|
55
55
|
|
|
56
56
|
`index.ts`:
|
|
@@ -69,7 +69,7 @@ import '@girs/meta-3'
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
That form carries types as well:
|
|
73
73
|
|
|
74
74
|
```ts
|
|
75
75
|
const Meta = imports.gi.Meta;
|
|
@@ -77,7 +77,7 @@ const Meta = imports.gi.Meta;
|
|
|
77
77
|
|
|
78
78
|
### Bundle
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
Most projects want a bundler. [esbuild](https://esbuild.github.io/) is the smallest thing that works; the [examples directory](https://github.com/gjsify/ts-for-gir/tree/main/examples) has setups for several others.
|
|
81
81
|
|
|
82
82
|
## Other packages
|
|
83
83
|
|
package/meta-3.d.ts
CHANGED
|
@@ -4272,9 +4272,20 @@ export namespace Meta {
|
|
|
4272
4272
|
/**
|
|
4273
4273
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
4274
4274
|
* implemented by `interface_`.
|
|
4275
|
+
*
|
|
4276
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
4277
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
4278
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
4279
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
4275
4280
|
* @returns A {@link Gio.DBusInterfaceInfo}. Do not free.
|
|
4276
4281
|
*/
|
|
4277
|
-
get_info(): Gio.DBusInterfaceInfo;
|
|
4282
|
+
get_info(): Gio.DBusInterfaceInfo | null;
|
|
4283
|
+
|
|
4284
|
+
/**
|
|
4285
|
+
* @param args
|
|
4286
|
+
*/
|
|
4287
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.get_info
|
|
4288
|
+
get_info(...args: never[]): any;
|
|
4278
4289
|
|
|
4279
4290
|
/**
|
|
4280
4291
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
|
@@ -4293,9 +4304,21 @@ export namespace Meta {
|
|
|
4293
4304
|
/**
|
|
4294
4305
|
* Gets D-Bus introspection information for the D-Bus interface
|
|
4295
4306
|
* implemented by `interface_`.
|
|
4307
|
+
*
|
|
4308
|
+
* This can return `null` if no {@link Gio.DBusInterfaceInfo} was provided during
|
|
4309
|
+
* construction of `interface_` and is also not made available otherwise.
|
|
4310
|
+
* For example, {@link Gio.DBusProxy} implements {@link Gio.DBusInterface} but allows for a `null`
|
|
4311
|
+
* {@link Gio.DBusInterfaceInfo}.
|
|
4312
|
+
* @virtual
|
|
4313
|
+
*/
|
|
4314
|
+
vfunc_get_info(): Gio.DBusInterfaceInfo | null;
|
|
4315
|
+
|
|
4316
|
+
/**
|
|
4317
|
+
* @param args
|
|
4296
4318
|
* @virtual
|
|
4297
4319
|
*/
|
|
4298
|
-
|
|
4320
|
+
// Conflicted with Gio.DBusInterfaceSkeleton.vfunc_get_info
|
|
4321
|
+
vfunc_get_info(...args: never[]): any;
|
|
4299
4322
|
|
|
4300
4323
|
/**
|
|
4301
4324
|
* Sets the {@link Gio.DBusObject} for `interface_` to `object`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/meta-3",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"libraryVersion": "3.30.2",
|
|
5
5
|
"description": "GJS TypeScript type definitions for Meta-3, generated from library version 3.30.2",
|
|
6
6
|
"type": "module",
|
|
@@ -32,28 +32,28 @@
|
|
|
32
32
|
"test": "tsc --project tsconfig.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@girs/gjs": "^4.
|
|
36
|
-
"@girs/xlib-2.0": "^4.
|
|
37
|
-
"@girs/xfixes-4.0": "^4.
|
|
38
|
-
"@girs/gtk-3.0": "^4.
|
|
39
|
-
"@girs/gdk-3.0": "^4.
|
|
40
|
-
"@girs/cairo-1.0": "^4.
|
|
41
|
-
"@girs/gobject-2.0": "^4.
|
|
42
|
-
"@girs/glib-2.0": "^4.
|
|
43
|
-
"@girs/pango-1.0": "^4.
|
|
44
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
45
|
-
"@girs/freetype2-2.0": "^4.
|
|
46
|
-
"@girs/gio-2.0": "^4.
|
|
47
|
-
"@girs/gmodule-2.0": "^4.
|
|
48
|
-
"@girs/gdkpixbuf-2.0": "^4.
|
|
49
|
-
"@girs/atk-1.0": "^4.
|
|
50
|
-
"@girs/gdesktopenums-3.0": "^4.
|
|
51
|
-
"@girs/cogl-3": "^4.
|
|
52
|
-
"@girs/gl-1.0": "^4.
|
|
53
|
-
"@girs/clutter-3": "^4.
|
|
54
|
-
"@girs/json-1.0": "^4.
|
|
55
|
-
"@girs/coglpango-3": "^4.
|
|
56
|
-
"@girs/pangocairo-1.0": "^4.
|
|
35
|
+
"@girs/gjs": "^4.3.0",
|
|
36
|
+
"@girs/xlib-2.0": "^4.3.0",
|
|
37
|
+
"@girs/xfixes-4.0": "^4.3.0",
|
|
38
|
+
"@girs/gtk-3.0": "^4.3.0",
|
|
39
|
+
"@girs/gdk-3.0": "^4.3.0",
|
|
40
|
+
"@girs/cairo-1.0": "^4.3.0",
|
|
41
|
+
"@girs/gobject-2.0": "^4.3.0",
|
|
42
|
+
"@girs/glib-2.0": "^4.3.0",
|
|
43
|
+
"@girs/pango-1.0": "^4.3.0",
|
|
44
|
+
"@girs/harfbuzz-0.0": "^4.3.0",
|
|
45
|
+
"@girs/freetype2-2.0": "^4.3.0",
|
|
46
|
+
"@girs/gio-2.0": "^4.3.0",
|
|
47
|
+
"@girs/gmodule-2.0": "^4.3.0",
|
|
48
|
+
"@girs/gdkpixbuf-2.0": "^4.3.0",
|
|
49
|
+
"@girs/atk-1.0": "^4.3.0",
|
|
50
|
+
"@girs/gdesktopenums-3.0": "^4.3.0",
|
|
51
|
+
"@girs/cogl-3": "^4.3.0",
|
|
52
|
+
"@girs/gl-1.0": "^4.3.0",
|
|
53
|
+
"@girs/clutter-3": "^4.3.0",
|
|
54
|
+
"@girs/json-1.0": "^4.3.0",
|
|
55
|
+
"@girs/coglpango-3": "^4.3.0",
|
|
56
|
+
"@girs/pangocairo-1.0": "^4.3.0" },
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"typescript": "*"
|
|
59
59
|
},
|