@girs/gtef-2 4.4.0 → 4.6.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 CHANGED
@@ -4,82 +4,96 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/gtef-2)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gtef-2)
6
6
 
7
+ GJS TypeScript type definitions for Gtef-2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.6.0.
7
8
 
8
- GJS TypeScript type definitions for Gtef-2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.4.0.
9
+ This package contains type declarations only. It ships no runtime code, so it adds
10
+ nothing to your program and works with any bundler or none at all.
9
11
 
10
12
  ## Install
11
13
 
12
- Install the type definitions with npm:
13
14
  ```bash
14
15
  npm install @girs/gtef-2
15
16
  ```
16
17
 
17
- ## Usage
18
+ Any package manager works. The package has no dependencies beyond other `@girs/*`
19
+ type packages.
20
+
21
+ ## What it exports
22
+
23
+ | Import | What you get |
24
+ |---|---|
25
+ | `@girs/gtef-2` | the namespace as a default export, plus the ambient and global declarations |
26
+ | `@girs/gtef-2/ambient` | only the `gi://` module declarations |
27
+ | `@girs/gtef-2/import` | only the `imports.gi` declarations |
28
+ | `@girs/gtef-2/gtef-2` | the namespace, without the side-effecting declarations |
29
+ | `@girs/gtef-2/vocabulary` | GIR-derived widget data: settable properties, enum nicks, slot candidates |
30
+
31
+ ## Three ways to import
32
+
33
+ Which one you use depends on how you write imports elsewhere, not on your toolchain.
34
+
35
+ ### As a module
18
36
 
19
- Import it like any other module:
20
37
  ```ts
21
38
  import Gtef from '@girs/gtef-2';
22
39
  ```
23
40
 
24
- ### Ambient Modules
41
+ ### As `gi://`
25
42
 
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
- For this you need to include `@girs/gtef-2` or `@girs/gtef-2/ambient` in your `tsconfig` or entry point Typescript file:
43
+ GJS resolves `gi://` at runtime. To give it types, reference the package once, either
44
+ from your entry point or from `tsconfig.json`:
28
45
 
29
- `index.ts`:
30
46
  ```ts
31
- import '@girs/gtef-2'
47
+ import '@girs/gtef-2';
32
48
  ```
33
49
 
34
- `tsconfig.json`:
35
50
  ```json
36
- {
37
- "compilerOptions": {
38
- ...
39
- },
40
- "include": ["@girs/gtef-2"],
41
- ...
42
- }
51
+ { "include": ["@girs/gtef-2"] }
43
52
  ```
44
53
 
45
- The ambient module now resolves with types:
54
+ Then the runtime spelling type-checks:
46
55
 
47
56
  ```ts
48
57
  import Gtef from 'gi://Gtef?version=2';
49
58
  ```
50
59
 
51
- ### Global import
60
+ Referencing `@girs/gtef-2/ambient` instead pulls in these declarations
61
+ alone. See [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules).
62
+
63
+ ### As `imports.gi`
52
64
 
53
- GJS's global `imports.gi` works too, with types.
54
- For this you need to include `@girs/gtef-2` or `@girs/gtef-2/import` in your `tsconfig` or entry point Typescript file:
65
+ GJS's global object works the same way, via `@girs/gtef-2/import`:
55
66
 
56
- `index.ts`:
57
67
  ```ts
58
- import '@girs/gtef-2'
68
+ const Gtef = imports.gi.Gtef;
59
69
  ```
60
70
 
61
- `tsconfig.json`:
62
- ```json
63
- {
64
- "compilerOptions": {
65
- ...
66
- },
67
- "include": ["@girs/gtef-2"],
68
- ...
69
- }
70
- ```
71
+ ## Widget vocabulary
71
72
 
72
- That form carries types as well:
73
+ `gtef-2` declares widgets, so it also carries what the GIR says about them, as
74
+ types and as values a test can read:
73
75
 
74
76
  ```ts
75
- const Gtef = imports.gi.Gtef;
77
+ import type { Widgets, PropsOf } from '@girs/gtef-2/vocabulary';
78
+ import { OWN_PROPS, ENUM_NICKS, PROVENANCE } from '@girs/gtef-2/vocabulary';
76
79
  ```
77
80
 
78
- ### Bundle
81
+ Properties are keyed the way GObject registered them, writable-only and optional, so they
82
+ match `g_object_set`, GtkBuilder XML and Blueprint. `PROVENANCE.libraryVersion` names the
83
+ library release this was generated from, which lets a check tell "newer than what is
84
+ installed" from "wrong".
79
85
 
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.
86
+ This subpath answers what the GIR says, not what the installed library has. For the
87
+ second question, ask the library.
88
+
89
+ ## Building
90
+
91
+ The declarations need no build step. If you bundle, every bundler works, since there is
92
+ no runtime code to resolve. The [examples](https://github.com/gjsify/ts-for-gir/tree/main/examples)
93
+ show working setups for several.
81
94
 
82
95
  ## Other packages
83
96
 
84
- All existing pre-generated packages can be found on [gjsify/types](https://github.com/gjsify/types).
97
+ Every pre-generated package is at [gjsify/types](https://github.com/gjsify/types).
98
+
85
99
 
@@ -0,0 +1,208 @@
1
+ /**
2
+ * The GIR-derived widget VOCABULARY for Gtef-2.
3
+ *
4
+ * GENERATED — do not edit. Provenance: Gtef-2 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface
5
+ *
6
+ * 3 concrete widgets, 3 declarations, 3 enum nick unions, 2 slot candidates.
7
+ *
8
+ * Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
9
+ * no `on<Signal>` prop name: those are DIALECT, and every framework answers them
10
+ * differently. The shape to avoid is the GLOBAL AUGMENT — a `declare global` on
11
+ * `React.JSX` collides with every other library on a shared tag — while a
12
+ * module-scoped `JSX` behind a `jsxImportSource` does not. This package is used by
13
+ * projects that want nothing to do with JSX, so it emits neither; a consumer declaring
14
+ * a module-scoped namespace over these names is doing it right.
15
+ *
16
+ * Three things this is and `ConstructorProps` is not: WRITABLE-only (measured on
17
+ * Gtk-4.0, `ConstructorProps` offers 150 read-only properties across 68 classes as
18
+ * settable, and GTK's failure mode for writing one is exit 0), OPTIONAL, and keyed
19
+ * by the name GObject actually REGISTERED — the dashed spelling `g_object_set`,
20
+ * GtkBuilder XML and Blueprint all use.
21
+ *
22
+ * Signal handler types are not re-derived: `X.SignalSignatures`, which this package
23
+ * already emits for every class with the parent chain, every implemented interface
24
+ * and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
25
+ */
26
+
27
+ import type Gtef from './gtef-2.js';
28
+ import type { GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkGridConstructOnly, GtkGridProps, GtkInfoBarConstructOnly, GtkInfoBarProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-3.0/vocabulary';
29
+ import type { GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-3.0/vocabulary';
30
+
31
+ // ---------------------------------------------------------------------------
32
+ // Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
33
+ //
34
+ // Not derived from the member name. Substituting underscores for dashes is not a law:
35
+ // some nicks keep an underscore the substitution would have replaced, and only the
36
+ // attribute knows which. Gtk-4.0 and Adw-1 contradict no derivation at all, which is
37
+ // how a derived nick passes review and breaks elsewhere.
38
+ // Re-measure with `scripts/check-nick-derivation.mjs` in ts-for-gir.
39
+ // ---------------------------------------------------------------------------
40
+
41
+ export type GtefCompressionTypeNick = 'none' | 'gzip';
42
+ export type GtefNewlineTypeNick = 'lf' | 'cr' | 'cr-lf';
43
+ export type GtefSelectionTypeNick = 'no-selection' | 'on-same-line' | 'multiple-lines';
44
+
45
+ // ---------------------------------------------------------------------------
46
+ // Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
47
+ // inheritance rather than flattening per widget.
48
+ //
49
+ // The interfaces are load-bearing, not tidiness: `GtkBox` declares four properties
50
+ // of its own and `orientation` is not among them — it lives on `Gtk.Orientable`,
51
+ // because GObject installs interface properties on the implementor at runtime while
52
+ // GIR keeps them once, on the interface.
53
+ // ---------------------------------------------------------------------------
54
+
55
+ export interface GtefInfoBarProps extends GtkInfoBarProps, GtkBuildableProps, GtkOrientableProps {
56
+ }
57
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
58
+ export type GtefInfoBarConstructOnly = GtkInfoBarConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly;
59
+
60
+ export interface GtefTabProps extends GtkGridProps, GtkBuildableProps, GtkOrientableProps {
61
+ }
62
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
63
+ export type GtefTabConstructOnly = GtkGridConstructOnly | GtkBuildableConstructOnly | GtkOrientableConstructOnly;
64
+
65
+ export interface GtefViewProps extends GtkSourceViewProps, GtkBuildableProps, GtkScrollableProps {
66
+ }
67
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
68
+ export type GtefViewConstructOnly = GtkSourceViewConstructOnly | GtkBuildableConstructOnly | GtkScrollableConstructOnly;
69
+
70
+ // ---------------------------------------------------------------------------
71
+ // The GType-keyed widget map.
72
+ //
73
+ // Keyed by GType because that is also the GtkBuilder XML key and the typelib key. A
74
+ // consumer maps GTypes to tags in ITS convention — kebab for JSX intrinsics, Pascal
75
+ // for a Vue `GlobalComponents`, the class itself for a renderer whose element type
76
+ // is the class. None of those is baked in here.
77
+ //
78
+ // `slotCandidates` is a candidate list and never an answer: derived from methods
79
+ // taking exactly one widget argument. The GIR cannot tell adoption from reference —
80
+ // `set_title_widget` parents its argument and `set_activatable_widget` does not, and
81
+ // both are `void f(GtkWidget*)` at `transfer-ownership="none"`. Curation decides;
82
+ // this is what notices when a release adds a candidate.
83
+ // ---------------------------------------------------------------------------
84
+
85
+ export interface Widgets {
86
+ GtefInfoBar: {
87
+ class: Gtef.InfoBar;
88
+ props: GtefInfoBarProps;
89
+ signals: Gtef.InfoBar.SignalSignatures;
90
+ constructOnly: GtefInfoBarConstructOnly;
91
+ slotCandidates: {
92
+ 'content-widget': 'add_content_widget';
93
+ };
94
+ };
95
+ GtefTab: {
96
+ class: Gtef.Tab;
97
+ props: GtefTabProps;
98
+ signals: Gtef.Tab.SignalSignatures;
99
+ constructOnly: GtefTabConstructOnly;
100
+ slotCandidates: {
101
+ 'info': 'add_info_bar';
102
+ };
103
+ };
104
+ GtefView: {
105
+ class: Gtef.View;
106
+ props: GtefViewProps;
107
+ signals: Gtef.View.SignalSignatures;
108
+ constructOnly: GtefViewConstructOnly;
109
+ slotCandidates: {};
110
+ };
111
+ }
112
+
113
+ /** Every GType this namespace can create. A consumer derives its own tag map. */
114
+ export type WidgetGType = keyof Widgets;
115
+
116
+ // ---------------------------------------------------------------------------
117
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
118
+ //
119
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
120
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
121
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
122
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
123
+ // more rows in `Widgets`: concatenate them when you mean both.
124
+ // ---------------------------------------------------------------------------
125
+
126
+ export interface ChildHolders {
127
+
128
+ }
129
+
130
+ /** Every GType this namespace holds a child in without it being a widget. */
131
+ export type ChildHolderGType = keyof ChildHolders;
132
+
133
+ /** The writable, optional, GObject-keyed property surface of one GType. */
134
+ export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
135
+
136
+ /** The signal table this package already emits, reached by GType. */
137
+ export type SignalsOf<G extends WidgetGType> = Widgets[G]['signals'];
138
+
139
+ /** The instance type — what a `ref`-shaped prop should infer. */
140
+ export type InstanceOf<G extends WidgetGType> = Widgets[G]['class'];
141
+
142
+ /** Property names that can only be set at construction. */
143
+ export type ConstructOnlyOf<G extends WidgetGType> = Widgets[G]['constructOnly'];
144
+
145
+ /** Candidate child slots — see the note above; curation decides. */
146
+ export type SlotCandidatesOf<G extends WidgetGType> = keyof Widgets[G]['slotCandidates'];
147
+
148
+ /**
149
+ * The same facts as runtime data, for a consumer that CHECKS them.
150
+ *
151
+ * Types are erased, so a spec that asks the installed GTK whether every property
152
+ * here is a writable ParamSpec, every signal resolvable by `GObject.signal_lookup`
153
+ * and every nick resolvable through an enum lookup cannot read the interfaces
154
+ * above. Emitted headlessly with no GTK present, which is exactly why the checking
155
+ * belongs to the consumer and the DATA belongs here.
156
+ */
157
+ export const PROVENANCE: {
158
+ readonly namespace: string;
159
+ readonly version: string;
160
+ /** The version the LIBRARY states, or null where it states none. Never the namespace's. */
161
+ readonly libraryVersion: string | null;
162
+ readonly childHolders: number;
163
+ readonly droppedBases: readonly string[];
164
+ readonly inlinedBases: readonly string[];
165
+ readonly unsettableProps: readonly string[];
166
+ };
167
+
168
+ /** Declaration GType -> its own settable properties, as GObject registered them. */
169
+ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
170
+
171
+ /**
172
+ * Declaration GType -> the signals it registers itself, never its parents'.
173
+ *
174
+ * Keyed like `OWN_PROPS`, so both are read at every link of a `DECLS` chain. An
175
+ * abstract base has no `Widgets` row and still owns signals — `GtkWidget` owns 13.
176
+ */
177
+ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
178
+
179
+ /** Widget GType -> every declaration its members come from, self first. */
180
+ export const DECLS: Readonly<Record<string, readonly string[]>>;
181
+
182
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
183
+ export const CHILD_HOLDERS: readonly string[];
184
+
185
+ /** Enum GType -> the nicks this surface offers. */
186
+ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
187
+
188
+ /** Widget GType -> slot name -> the method that may adopt a child there. */
189
+ export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
190
+
191
+ /**
192
+ * `Type`, `Type.property` and `Type::signal` -> the release that introduced it.
193
+ *
194
+ * What keeps a runtime cross-check honest across a version gap without an
195
+ * allowlist: a name the installed library lacks is a defect UNLESS the version
196
+ * here is newer than the one running.
197
+ *
198
+ * ALL THREE key shapes, because that test only works for the names it covers. A
199
+ * property-only map leaves a consumer no way to explain a missing SIGNAL, which is
200
+ * a correct vocabulary reported as 18 defects; a member-only map leaves it no way to
201
+ * explain a missing CLASS, and that one fails as a bare
202
+ * `TypeError: can't access property "$gtype", ctor() is undefined` that does not
203
+ * even name the GType.
204
+ *
205
+ * A key is present only where the GIR states a version — sparse by nature (`version`
206
+ * sits on 29 of the 301 classes and interfaces in Gtk-4.0), never inferred.
207
+ */
208
+ export const SINCE: Readonly<Record<string, string>>;
@@ -0,0 +1,50 @@
1
+ // The widget vocabulary of Gtef-2 as runtime data.
2
+ //
3
+ // GENERATED — do not edit. Provenance: Gtef-2 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface
4
+ //
5
+ // The type half of this subpath is the sibling `.d.ts`. This file exists because
6
+ // types are erased: a consumer that wants to ask the installed library whether every
7
+ // name here is real needs values, not declarations.
8
+
9
+ export const PROVENANCE = {
10
+ namespace: 'Gtef',
11
+ version: '2',
12
+ libraryVersion: null,
13
+ childHolders: 0,
14
+ droppedBases: ['GObject.InitiallyUnowned', 'GObject.Object', 'Atk.ImplementorIface'],
15
+ inlinedBases: [],
16
+ unsettableProps: [],
17
+ };
18
+
19
+ export const OWN_PROPS = {};
20
+
21
+ export const OWN_SIGNALS = {};
22
+
23
+ export const DECLS = {
24
+ GtefInfoBar: ['GtefInfoBar', 'GtkInfoBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
25
+ GtefTab: ['GtefTab', 'GtkGrid', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
26
+ GtefView: ['GtefView', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
27
+ };
28
+
29
+ // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
30
+ // and descend from `GObject.Object`. A renderer places them like a container; a check
31
+ // asking "is this a widget" must not count them. Derived from the accessor pair, never
32
+ // from a list — the count is in the provenance line above.
33
+ export const CHILD_HOLDERS = [];
34
+
35
+ export const ENUM_NICKS = {
36
+ GtefCompressionType: ['none', 'gzip'],
37
+ GtefNewlineType: ['lf', 'cr', 'cr-lf'],
38
+ GtefSelectionType: ['no-selection', 'on-same-line', 'multiple-lines'],
39
+ };
40
+
41
+ export const SLOT_CANDIDATES = {
42
+ GtefInfoBar: {
43
+ 'content-widget': 'add_content_widget',
44
+ },
45
+ GtefTab: {
46
+ 'info': 'add_info_bar',
47
+ },
48
+ };
49
+
50
+ export const SINCE = {};
package/gtef-2.d.ts CHANGED
@@ -48,11 +48,11 @@ export namespace Gtef {
48
48
  /**
49
49
  * plain text.
50
50
  */
51
- NONE,
51
+ NONE = 0,
52
52
  /**
53
53
  * gzip compression.
54
54
  */
55
- GZIP,
55
+ GZIP = 1,
56
56
  }
57
57
 
58
58
 
@@ -126,16 +126,16 @@ export namespace Gtef {
126
126
  /**
127
127
  * line feed, used on UNIX.
128
128
  */
129
- LF,
129
+ LF = 0,
130
130
  /**
131
131
  * carriage return, used on Mac.
132
132
  */
133
- CR,
133
+ CR = 1,
134
134
  /**
135
135
  * carriage return followed by a line feed, used
136
136
  * on Windows.
137
137
  */
138
- CR_LF,
138
+ CR_LF = 2,
139
139
  }
140
140
 
141
141
 
@@ -154,16 +154,16 @@ export namespace Gtef {
154
154
  /**
155
155
  * No selection.
156
156
  */
157
- NO_SELECTION,
157
+ NO_SELECTION = 0,
158
158
  /**
159
159
  * The start and end selection bounds are on
160
160
  * the same line.
161
161
  */
162
- ON_SAME_LINE,
162
+ ON_SAME_LINE = 1,
163
163
  /**
164
164
  * The selection spans multiple lines.
165
165
  */
166
- MULTIPLE_LINES,
166
+ MULTIPLE_LINES = 2,
167
167
  }
168
168
 
169
169
 
@@ -307,19 +307,19 @@ export namespace Gtef {
307
307
  /**
308
308
  * No flags.
309
309
  */
310
- NONE,
310
+ NONE = 0,
311
311
  /**
312
312
  * Ignore invalid characters.
313
313
  */
314
- IGNORE_INVALID_CHARS,
314
+ IGNORE_INVALID_CHARS = 1,
315
315
  /**
316
316
  * Save file despite external modifications.
317
317
  */
318
- IGNORE_MODIFICATION_TIME,
318
+ IGNORE_MODIFICATION_TIME = 2,
319
319
  /**
320
320
  * Create a backup before saving the file.
321
321
  */
322
- CREATE_BACKUP,
322
+ CREATE_BACKUP = 4,
323
323
  }
324
324
 
325
325
 
@@ -343,25 +343,25 @@ export namespace Gtef {
343
343
  /**
344
344
  * No code folding here.
345
345
  */
346
- NONE,
346
+ NONE = 0,
347
347
  /**
348
348
  * Start of currently folded
349
349
  * fold region.
350
350
  */
351
- START_FOLDED,
351
+ START_FOLDED = 1,
352
352
  /**
353
353
  * Start of currently opened
354
354
  * fold region.
355
355
  */
356
- START_OPENED,
356
+ START_OPENED = 2,
357
357
  /**
358
358
  * Fold region continues.
359
359
  */
360
- CONTINUE,
360
+ CONTINUE = 4,
361
361
  /**
362
362
  * End of fold region.
363
363
  */
364
- END,
364
+ END = 8,
365
365
  }
366
366
 
367
367
 
@@ -1426,6 +1426,7 @@ export namespace Gtef {
1426
1426
  * @param result a {@link Gio.AsyncResult}.
1427
1427
  * @returns whether the content has been loaded successfully.
1428
1428
  * @since 1.0
1429
+ * @throws GLib.Error
1429
1430
  */
1430
1431
  load_finish(result: Gio.AsyncResult): boolean;
1431
1432
 
@@ -1527,6 +1528,7 @@ export namespace Gtef {
1527
1528
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1528
1529
  * @returns whether the metadata was loaded successfully.
1529
1530
  * @since 1.0
1531
+ * @throws GLib.Error
1530
1532
  */
1531
1533
  load(cancellable: Gio.Cancellable | null): boolean;
1532
1534
 
@@ -1579,6 +1581,7 @@ export namespace Gtef {
1579
1581
  * @param result a {@link Gio.AsyncResult}.
1580
1582
  * @returns whether the metadata was loaded successfully.
1581
1583
  * @since 1.0
1584
+ * @throws GLib.Error
1582
1585
  */
1583
1586
  load_finish(result: Gio.AsyncResult): boolean;
1584
1587
 
@@ -1592,6 +1595,7 @@ export namespace Gtef {
1592
1595
  * @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
1593
1596
  * @returns whether the metadata was saved successfully.
1594
1597
  * @since 1.0
1598
+ * @throws GLib.Error
1595
1599
  */
1596
1600
  save(cancellable: Gio.Cancellable | null): boolean;
1597
1601
 
@@ -1641,6 +1645,7 @@ export namespace Gtef {
1641
1645
  * @param result a {@link Gio.AsyncResult}.
1642
1646
  * @returns whether the metadata was saved successfully.
1643
1647
  * @since 1.0
1648
+ * @throws GLib.Error
1644
1649
  */
1645
1650
  save_finish(result: Gio.AsyncResult): boolean;
1646
1651
 
@@ -1884,6 +1889,7 @@ export namespace Gtef {
1884
1889
  * @param result a {@link Gio.AsyncResult}.
1885
1890
  * @returns whether the file was saved successfully.
1886
1891
  * @since 1.0
1892
+ * @throws GLib.Error
1887
1893
  */
1888
1894
  save_finish(result: Gio.AsyncResult): boolean;
1889
1895
 
@@ -2251,7 +2257,7 @@ export namespace Gtef {
2251
2257
  * @since 2.0
2252
2258
  * @run-first
2253
2259
  */
2254
- "menu-item-deselected": (arg0: Gtk.MenuItem) => void;
2260
+ "menu-item-deselected": (menu_item: Gtk.MenuItem) => void;
2255
2261
  /**
2256
2262
  * The ::menu-item-selected signal is emitted when the
2257
2263
  * {@link Gtk.MenuItem.SignalSignatures.select | Gtk.MenuItem::select} signal is emitted on a {@link Gtk.MenuItem} belonging
@@ -2260,7 +2266,7 @@ export namespace Gtef {
2260
2266
  * @since 2.0
2261
2267
  * @run-first
2262
2268
  */
2263
- "menu-item-selected": (arg0: Gtk.MenuItem) => void;
2269
+ "menu-item-selected": (menu_item: Gtk.MenuItem) => void;
2264
2270
  "notify::menu-shell": (pspec: GObject.ParamSpec) => void;
2265
2271
  }
2266
2272
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtef-2",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "description": "GJS TypeScript type definitions for Gtef-2",
5
5
  "type": "module",
6
6
  "module": "gtef-2.js",
@@ -16,10 +16,10 @@
16
16
  "import": "./gtef-2-import.js",
17
17
  "default": "./gtef-2-import.js"
18
18
  },
19
- "./surface": {
20
- "types": "./gtef-2-surface.d.ts",
21
- "import": "./gtef-2-surface.js",
22
- "default": "./gtef-2-surface.js"
19
+ "./vocabulary": {
20
+ "types": "./gtef-2-vocabulary.d.ts",
21
+ "import": "./gtef-2-vocabulary.js",
22
+ "default": "./gtef-2-vocabulary.js"
23
23
  },
24
24
  "./gtef-2": {
25
25
  "types": "./gtef-2.d.ts",
@@ -36,21 +36,21 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.4.0",
40
- "@girs/gtksource-3.0": "^4.4.0",
41
- "@girs/gtk-3.0": "^4.4.0",
42
- "@girs/xlib-2.0": "^4.4.0",
43
- "@girs/gdk-3.0": "^4.4.0",
44
- "@girs/cairo-1.0": "^4.4.0",
45
- "@girs/gobject-2.0": "^4.4.0",
46
- "@girs/glib-2.0": "^4.4.0",
47
- "@girs/pango-1.0": "^4.4.0",
48
- "@girs/harfbuzz-0.0": "^4.4.0",
49
- "@girs/freetype2-2.0": "^4.4.0",
50
- "@girs/gio-2.0": "^4.4.0",
51
- "@girs/gmodule-2.0": "^4.4.0",
52
- "@girs/gdkpixbuf-2.0": "^4.4.0",
53
- "@girs/atk-1.0": "^4.4.0" },
39
+ "@girs/gjs": "^4.6.0",
40
+ "@girs/gtksource-3.0": "^4.6.0",
41
+ "@girs/gtk-3.0": "^4.6.0",
42
+ "@girs/xlib-2.0": "^4.6.0",
43
+ "@girs/gdk-3.0": "^4.6.0",
44
+ "@girs/cairo-1.0": "^4.6.0",
45
+ "@girs/gobject-2.0": "^4.6.0",
46
+ "@girs/glib-2.0": "^4.6.0",
47
+ "@girs/pango-1.0": "^4.6.0",
48
+ "@girs/harfbuzz-0.0": "^4.6.0",
49
+ "@girs/freetype2-2.0": "^4.6.0",
50
+ "@girs/gio-2.0": "^4.6.0",
51
+ "@girs/gmodule-2.0": "^4.6.0",
52
+ "@girs/gdkpixbuf-2.0": "^4.6.0",
53
+ "@girs/atk-1.0": "^4.6.0" },
54
54
  "devDependencies": {
55
55
  "typescript": "*"
56
56
  },
package/tsconfig.json CHANGED
@@ -65,7 +65,7 @@
65
65
  ]
66
66
  }
67
67
  },
68
- "include": ["./gtef-2.d.ts","./gtef-2-surface.d.ts"]
68
+ "include": ["./gtef-2.d.ts","./gtef-2-vocabulary.d.ts"]
69
69
  }
70
70
 
71
71