@girs/gtksource-300 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/gtksource-300)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gtksource-300)
6
6
 
7
+ GJS TypeScript type definitions for GtkSource-300 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.6.0.
7
8
 
8
- GJS TypeScript type definitions for GtkSource-300 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/gtksource-300
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/gtksource-300` | the namespace as a default export, plus the ambient and global declarations |
26
+ | `@girs/gtksource-300/ambient` | only the `gi://` module declarations |
27
+ | `@girs/gtksource-300/import` | only the `imports.gi` declarations |
28
+ | `@girs/gtksource-300/gtksource-300` | the namespace, without the side-effecting declarations |
29
+ | `@girs/gtksource-300/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 GtkSource from '@girs/gtksource-300';
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/gtksource-300` or `@girs/gtksource-300/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/gtksource-300'
47
+ import '@girs/gtksource-300';
32
48
  ```
33
49
 
34
- `tsconfig.json`:
35
50
  ```json
36
- {
37
- "compilerOptions": {
38
- ...
39
- },
40
- "include": ["@girs/gtksource-300"],
41
- ...
42
- }
51
+ { "include": ["@girs/gtksource-300"] }
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 GtkSource from 'gi://GtkSource?version=300';
49
58
  ```
50
59
 
51
- ### Global import
60
+ Referencing `@girs/gtksource-300/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/gtksource-300` or `@girs/gtksource-300/import` in your `tsconfig` or entry point Typescript file:
65
+ GJS's global object works the same way, via `@girs/gtksource-300/import`:
55
66
 
56
- `index.ts`:
57
67
  ```ts
58
- import '@girs/gtksource-300'
68
+ const GtkSource = imports.gi.GtkSource;
59
69
  ```
60
70
 
61
- `tsconfig.json`:
62
- ```json
63
- {
64
- "compilerOptions": {
65
- ...
66
- },
67
- "include": ["@girs/gtksource-300"],
68
- ...
69
- }
70
- ```
71
+ ## Widget vocabulary
71
72
 
72
- That form carries types as well:
73
+ `gtksource-300` 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 GtkSource = imports.gi.GtkSource;
77
+ import type { Widgets, PropsOf } from '@girs/gtksource-300/vocabulary';
78
+ import { OWN_PROPS, ENUM_NICKS, PROVENANCE } from '@girs/gtksource-300/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,259 @@
1
+ /**
2
+ * The GIR-derived widget VOCABULARY for GtkSource-300.
3
+ *
4
+ * GENERATED — do not edit. Provenance: GtkSource-300 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface
5
+ *
6
+ * 2 concrete widgets, 2 declarations, 9 enum nick unions, 0 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 GtkSource from './gtksource-300.js';
28
+ import type { GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
29
+
30
+ // ---------------------------------------------------------------------------
31
+ // Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
32
+ //
33
+ // Not derived from the member name. Substituting underscores for dashes is not a law:
34
+ // some nicks keep an underscore the substitution would have replaced, and only the
35
+ // attribute knows which. Gtk-4.0 and Adw-1 contradict no derivation at all, which is
36
+ // how a derived nick passes review and breaks elsewhere.
37
+ // Re-measure with `scripts/check-nick-derivation.mjs` in ts-for-gir.
38
+ // ---------------------------------------------------------------------------
39
+
40
+ export type GtkSourceBracketMatchTypeNick = 'none' | 'out-of-range' | 'not-found' | 'found';
41
+ export type GtkSourceChangeCaseTypeNick = 'lower' | 'upper' | 'toggle' | 'title';
42
+ export type GtkSourceCompressionTypeNick = 'none' | 'gzip';
43
+ export type GtkSourceEncodingDuplicatesNick = 'first' | 'last';
44
+ export type GtkSourceGutterRendererAlignmentModeNick = 'cell' | 'first' | 'last';
45
+ export type GtkSourceNewlineTypeNick = 'lf' | 'cr' | 'cr-lf';
46
+ export type GtkSourceSmartHomeEndTypeNick = 'disabled' | 'before' | 'after' | 'always';
47
+ export type GtkSourceStyleSchemeKindNick = 'light' | 'dark' | 'light-only' | 'dark-only';
48
+ export type GtkSourceViewGutterPositionNick = 'lines' | 'marks';
49
+
50
+ // ---------------------------------------------------------------------------
51
+ // Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
52
+ // inheritance rather than flattening per widget.
53
+ //
54
+ // The interfaces are load-bearing, not tidiness: `GtkBox` declares four properties
55
+ // of its own and `orientation` is not among them — it lives on `Gtk.Orientable`,
56
+ // because GObject installs interface properties on the implementor at runtime while
57
+ // GIR keeps them once, on the interface.
58
+ // ---------------------------------------------------------------------------
59
+
60
+ export interface GtkSourceCompletionInfoProps extends GtkWindowProps, GtkBuildableProps {
61
+ }
62
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
63
+ export type GtkSourceCompletionInfoConstructOnly = GtkWindowConstructOnly | GtkBuildableConstructOnly;
64
+
65
+ export interface GtkSourceViewProps extends GtkTextViewProps, GtkBuildableProps, GtkScrollableProps {
66
+ /**
67
+ * Whether to enable auto indentation.
68
+ * @default FALSE
69
+ */
70
+ 'auto-indent'?: boolean;
71
+ /**
72
+ * Whether to highlight the current line.
73
+ * @default FALSE
74
+ */
75
+ 'highlight-current-line'?: boolean;
76
+ /**
77
+ * Whether to indent the selected text when the tab key is pressed.
78
+ * @default TRUE
79
+ */
80
+ 'indent-on-tab'?: boolean;
81
+ /**
82
+ * Width of an indentation step expressed in number of spaces.
83
+ * @default -1
84
+ */
85
+ 'indent-width'?: number;
86
+ /**
87
+ * Whether to insert spaces instead of tabs.
88
+ * @default FALSE
89
+ */
90
+ 'insert-spaces-instead-of-tabs'?: boolean;
91
+ /**
92
+ * The width in characters where to position the right margin.
93
+ * @default 80
94
+ */
95
+ 'right-margin-position'?: number;
96
+ /**
97
+ * Whether to display line mark pixbufs beside the text.
98
+ * @default FALSE
99
+ */
100
+ 'show-line-marks'?: boolean;
101
+ /**
102
+ * Whether to display line numbers beside the text.
103
+ * @default FALSE
104
+ */
105
+ 'show-line-numbers'?: boolean;
106
+ /**
107
+ * Whether to display the right margin.
108
+ * @default FALSE
109
+ */
110
+ 'show-right-margin'?: boolean;
111
+ /**
112
+ * Whether smart Backspace should be used.
113
+ * @since 3.18
114
+ * @default FALSE
115
+ */
116
+ 'smart-backspace'?: boolean;
117
+ /**
118
+ * Set the behavior of the HOME and END keys.
119
+ * @since 2.0
120
+ * @default GTK_SOURCE_SMART_HOME_END_DISABLED
121
+ */
122
+ 'smart-home-end'?: GtkSourceSmartHomeEndTypeNick | GtkSource.SmartHomeEndType;
123
+ /**
124
+ * The width of a tabulation character expressed in number of spaces.
125
+ * @default 8
126
+ */
127
+ 'tab-width'?: number;
128
+ }
129
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
130
+ export type GtkSourceViewConstructOnly = GtkTextViewConstructOnly | GtkBuildableConstructOnly | GtkScrollableConstructOnly;
131
+
132
+ // ---------------------------------------------------------------------------
133
+ // The GType-keyed widget map.
134
+ //
135
+ // Keyed by GType because that is also the GtkBuilder XML key and the typelib key. A
136
+ // consumer maps GTypes to tags in ITS convention — kebab for JSX intrinsics, Pascal
137
+ // for a Vue `GlobalComponents`, the class itself for a renderer whose element type
138
+ // is the class. None of those is baked in here.
139
+ //
140
+ // `slotCandidates` is a candidate list and never an answer: derived from methods
141
+ // taking exactly one widget argument. The GIR cannot tell adoption from reference —
142
+ // `set_title_widget` parents its argument and `set_activatable_widget` does not, and
143
+ // both are `void f(GtkWidget*)` at `transfer-ownership="none"`. Curation decides;
144
+ // this is what notices when a release adds a candidate.
145
+ // ---------------------------------------------------------------------------
146
+
147
+ export interface Widgets {
148
+ GtkSourceCompletionInfo: {
149
+ class: GtkSource.CompletionInfo;
150
+ props: GtkSourceCompletionInfoProps;
151
+ signals: GtkSource.CompletionInfo.SignalSignatures;
152
+ constructOnly: GtkSourceCompletionInfoConstructOnly;
153
+ slotCandidates: {};
154
+ };
155
+ GtkSourceView: {
156
+ class: GtkSource.View;
157
+ props: GtkSourceViewProps;
158
+ signals: GtkSource.View.SignalSignatures;
159
+ constructOnly: GtkSourceViewConstructOnly;
160
+ slotCandidates: {};
161
+ };
162
+ }
163
+
164
+ /** Every GType this namespace can create. A consumer derives its own tag map. */
165
+ export type WidgetGType = keyof Widgets;
166
+
167
+ // ---------------------------------------------------------------------------
168
+ // Child holders — the same shape, for objects that CARRY a widget without being one.
169
+ //
170
+ // `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
171
+ // `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
172
+ // them exactly like a container, so they belong in the vocabulary; a check asking "is
173
+ // this a widget" must still be able to say no. Hence a sibling table rather than four
174
+ // more rows in `Widgets`: concatenate them when you mean both.
175
+ // ---------------------------------------------------------------------------
176
+
177
+ export interface ChildHolders {
178
+
179
+ }
180
+
181
+ /** Every GType this namespace holds a child in without it being a widget. */
182
+ export type ChildHolderGType = keyof ChildHolders;
183
+
184
+ /** The writable, optional, GObject-keyed property surface of one GType. */
185
+ export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
186
+
187
+ /** The signal table this package already emits, reached by GType. */
188
+ export type SignalsOf<G extends WidgetGType> = Widgets[G]['signals'];
189
+
190
+ /** The instance type — what a `ref`-shaped prop should infer. */
191
+ export type InstanceOf<G extends WidgetGType> = Widgets[G]['class'];
192
+
193
+ /** Property names that can only be set at construction. */
194
+ export type ConstructOnlyOf<G extends WidgetGType> = Widgets[G]['constructOnly'];
195
+
196
+ /** Candidate child slots — see the note above; curation decides. */
197
+ export type SlotCandidatesOf<G extends WidgetGType> = keyof Widgets[G]['slotCandidates'];
198
+
199
+ /**
200
+ * The same facts as runtime data, for a consumer that CHECKS them.
201
+ *
202
+ * Types are erased, so a spec that asks the installed GTK whether every property
203
+ * here is a writable ParamSpec, every signal resolvable by `GObject.signal_lookup`
204
+ * and every nick resolvable through an enum lookup cannot read the interfaces
205
+ * above. Emitted headlessly with no GTK present, which is exactly why the checking
206
+ * belongs to the consumer and the DATA belongs here.
207
+ */
208
+ export const PROVENANCE: {
209
+ readonly namespace: string;
210
+ readonly version: string;
211
+ /** The version the LIBRARY states, or null where it states none. Never the namespace's. */
212
+ readonly libraryVersion: string | null;
213
+ readonly childHolders: number;
214
+ readonly droppedBases: readonly string[];
215
+ readonly inlinedBases: readonly string[];
216
+ readonly unsettableProps: readonly string[];
217
+ };
218
+
219
+ /** Declaration GType -> its own settable properties, as GObject registered them. */
220
+ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
221
+
222
+ /**
223
+ * Declaration GType -> the signals it registers itself, never its parents'.
224
+ *
225
+ * Keyed like `OWN_PROPS`, so both are read at every link of a `DECLS` chain. An
226
+ * abstract base has no `Widgets` row and still owns signals — `GtkWidget` owns 13.
227
+ */
228
+ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
229
+
230
+ /** Widget GType -> every declaration its members come from, self first. */
231
+ export const DECLS: Readonly<Record<string, readonly string[]>>;
232
+
233
+ /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
234
+ export const CHILD_HOLDERS: readonly string[];
235
+
236
+ /** Enum GType -> the nicks this surface offers. */
237
+ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
238
+
239
+ /** Widget GType -> slot name -> the method that may adopt a child there. */
240
+ export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
241
+
242
+ /**
243
+ * `Type`, `Type.property` and `Type::signal` -> the release that introduced it.
244
+ *
245
+ * What keeps a runtime cross-check honest across a version gap without an
246
+ * allowlist: a name the installed library lacks is a defect UNLESS the version
247
+ * here is newer than the one running.
248
+ *
249
+ * ALL THREE key shapes, because that test only works for the names it covers. A
250
+ * property-only map leaves a consumer no way to explain a missing SIGNAL, which is
251
+ * a correct vocabulary reported as 18 defects; a member-only map leaves it no way to
252
+ * explain a missing CLASS, and that one fails as a bare
253
+ * `TypeError: can't access property "$gtype", ctor() is undefined` that does not
254
+ * even name the GType.
255
+ *
256
+ * A key is present only where the GIR states a version — sparse by nature (`version`
257
+ * sits on 29 of the 301 classes and interfaces in Gtk-4.0), never inferred.
258
+ */
259
+ export const SINCE: Readonly<Record<string, string>>;
@@ -0,0 +1,61 @@
1
+ // The widget vocabulary of GtkSource-300 as runtime data.
2
+ //
3
+ // GENERATED — do not edit. Provenance: GtkSource-300 — 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: 'GtkSource',
11
+ version: '300',
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
+ GtkSourceView: ['auto-indent', 'highlight-current-line', 'indent-on-tab', 'indent-width', 'insert-spaces-instead-of-tabs', 'right-margin-position', 'show-line-marks', 'show-line-numbers', 'show-right-margin', 'smart-backspace', 'smart-home-end', 'tab-width'],
21
+ };
22
+
23
+ export const OWN_SIGNALS = {
24
+ GtkSourceView: ['change-case', 'change-number', 'join-lines', 'line-mark-activated', 'move-lines', 'move-to-matching-bracket', 'move-words', 'redo', 'show-completion', 'smart-home-end', 'undo'],
25
+ };
26
+
27
+ export const DECLS = {
28
+ GtkSourceCompletionInfo: ['GtkSourceCompletionInfo', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
29
+ GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
30
+ };
31
+
32
+ // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
33
+ // and descend from `GObject.Object`. A renderer places them like a container; a check
34
+ // asking "is this a widget" must not count them. Derived from the accessor pair, never
35
+ // from a list — the count is in the provenance line above.
36
+ export const CHILD_HOLDERS = [];
37
+
38
+ export const ENUM_NICKS = {
39
+ GtkSourceBracketMatchType: ['none', 'out-of-range', 'not-found', 'found'],
40
+ GtkSourceChangeCaseType: ['lower', 'upper', 'toggle', 'title'],
41
+ GtkSourceCompressionType: ['none', 'gzip'],
42
+ GtkSourceEncodingDuplicates: ['first', 'last'],
43
+ GtkSourceGutterRendererAlignmentMode: ['cell', 'first', 'last'],
44
+ GtkSourceNewlineType: ['lf', 'cr', 'cr-lf'],
45
+ GtkSourceSmartHomeEndType: ['disabled', 'before', 'after', 'always'],
46
+ GtkSourceStyleSchemeKind: ['light', 'dark', 'light-only', 'dark-only'],
47
+ GtkSourceViewGutterPosition: ['lines', 'marks'],
48
+ };
49
+
50
+ export const SLOT_CANDIDATES = {};
51
+
52
+ export const SINCE = {
53
+ 'GtkSourceView.smart-backspace': '3.18',
54
+ 'GtkSourceView.smart-home-end': '2.0',
55
+ 'GtkSourceView::change-case': '3.16',
56
+ 'GtkSourceView::change-number': '3.16',
57
+ 'GtkSourceView::join-lines': '3.16',
58
+ 'GtkSourceView::move-to-matching-bracket': '3.16',
59
+ 'GtkSourceView::move-words': '3.0',
60
+ 'GtkSourceView::smart-home-end': '3.0',
61
+ };
@@ -46,20 +46,20 @@ export namespace GtkSource {
46
46
  /**
47
47
  * there is no bracket to match.
48
48
  */
49
- NONE,
49
+ NONE = 0,
50
50
  /**
51
51
  * matching a bracket
52
52
  * failed because the maximum range was reached.
53
53
  */
54
- OUT_OF_RANGE,
54
+ OUT_OF_RANGE = 1,
55
55
  /**
56
56
  * a matching bracket was not found.
57
57
  */
58
- NOT_FOUND,
58
+ NOT_FOUND = 2,
59
59
  /**
60
60
  * a matching bracket was found.
61
61
  */
62
- FOUND,
62
+ FOUND = 3,
63
63
  }
64
64
 
65
65
 
@@ -78,19 +78,19 @@ export namespace GtkSource {
78
78
  /**
79
79
  * change case to lowercase.
80
80
  */
81
- LOWER,
81
+ LOWER = 0,
82
82
  /**
83
83
  * change case to uppercase.
84
84
  */
85
- UPPER,
85
+ UPPER = 1,
86
86
  /**
87
87
  * toggle case of each character.
88
88
  */
89
- TOGGLE,
89
+ TOGGLE = 2,
90
90
  /**
91
91
  * capitalize each word.
92
92
  */
93
- TITLE,
93
+ TITLE = 3,
94
94
  }
95
95
 
96
96
 
@@ -138,11 +138,11 @@ export namespace GtkSource {
138
138
  /**
139
139
  * Plain text.
140
140
  */
141
- NONE,
141
+ NONE = 0,
142
142
  /**
143
143
  * Gzip compression.
144
144
  */
145
- GZIP,
145
+ GZIP = 1,
146
146
  }
147
147
 
148
148
 
@@ -163,11 +163,11 @@ export namespace GtkSource {
163
163
  /**
164
164
  * Keep the first occurrence.
165
165
  */
166
- FIRST,
166
+ FIRST = 0,
167
167
  /**
168
168
  * Keep the last occurrence.
169
169
  */
170
- LAST,
170
+ LAST = 1,
171
171
  }
172
172
 
173
173
 
@@ -248,15 +248,15 @@ export namespace GtkSource {
248
248
  /**
249
249
  * The full cell.
250
250
  */
251
- CELL,
251
+ CELL = 0,
252
252
  /**
253
253
  * The first line.
254
254
  */
255
- FIRST,
255
+ FIRST = 1,
256
256
  /**
257
257
  * The last line.
258
258
  */
259
- LAST,
259
+ LAST = 2,
260
260
  }
261
261
 
262
262
 
@@ -275,16 +275,16 @@ export namespace GtkSource {
275
275
  /**
276
276
  * Line feed, used on UNIX.
277
277
  */
278
- LF,
278
+ LF = 0,
279
279
  /**
280
280
  * Carriage return, used on macOS.
281
281
  */
282
- CR,
282
+ CR = 1,
283
283
  /**
284
284
  * Carriage return followed by a line feed, used
285
285
  * on Windows.
286
286
  */
287
- CR_LF,
287
+ CR_LF = 2,
288
288
  }
289
289
 
290
290
 
@@ -302,24 +302,24 @@ export namespace GtkSource {
302
302
  /**
303
303
  * smart-home-end disabled.
304
304
  */
305
- DISABLED,
305
+ DISABLED = 0,
306
306
  /**
307
307
  * move to the first/last
308
308
  * non-whitespace character on the first press of the HOME/END keys and
309
309
  * to the beginning/end of the line on the second press.
310
310
  */
311
- BEFORE,
311
+ BEFORE = 1,
312
312
  /**
313
313
  * move to the beginning/end of the
314
314
  * line on the first press of the HOME/END keys and to the first/last
315
315
  * non-whitespace character on the second press.
316
316
  */
317
- AFTER,
317
+ AFTER = 2,
318
318
  /**
319
319
  * always move to the first/last
320
320
  * non-whitespace character when the HOME/END keys are pressed.
321
321
  */
322
- ALWAYS,
322
+ ALWAYS = 3,
323
323
  }
324
324
 
325
325
 
@@ -339,21 +339,21 @@ export namespace GtkSource {
339
339
  /**
340
340
  * Light style.
341
341
  */
342
- LIGHT,
342
+ LIGHT = 0,
343
343
  /**
344
344
  * Dark style.
345
345
  */
346
- DARK,
346
+ DARK = 1,
347
347
  /**
348
348
  * Light style. Supports only a light
349
349
  * GTK theme.
350
350
  */
351
- LIGHT_ONLY,
351
+ LIGHT_ONLY = 2,
352
352
  /**
353
353
  * Dark style. Supports only a dark GTK
354
354
  * theme.
355
355
  */
356
- DARK_ONLY,
356
+ DARK_ONLY = 3,
357
357
  }
358
358
 
359
359
 
@@ -372,12 +372,12 @@ export namespace GtkSource {
372
372
  * the gutter position of the lines
373
373
  * renderer
374
374
  */
375
- LINES,
375
+ LINES = -30,
376
376
  /**
377
377
  * the gutter position of the marks
378
378
  * renderer
379
379
  */
380
- MARKS,
380
+ MARKS = -20,
381
381
  }
382
382
 
383
383
 
@@ -570,19 +570,19 @@ export namespace GtkSource {
570
570
  /**
571
571
  * None.
572
572
  */
573
- NONE,
573
+ NONE = 0,
574
574
  /**
575
575
  * Interactive activation. By
576
576
  * default, it occurs on each insertion in the {@link Gtk.TextBuffer}. This can be
577
577
  * blocked temporarily with `gtk_source_completion_block_interactive()`.
578
578
  */
579
- INTERACTIVE,
579
+ INTERACTIVE = 1,
580
580
  /**
581
581
  * User requested activation.
582
582
  * By default, it occurs when the user presses
583
583
  * <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.
584
584
  */
585
- USER_REQUESTED,
585
+ USER_REQUESTED = 2,
586
586
  }
587
587
 
588
588
 
@@ -602,19 +602,19 @@ export namespace GtkSource {
602
602
  /**
603
603
  * No flags.
604
604
  */
605
- NONE,
605
+ NONE = 0,
606
606
  /**
607
607
  * Ignore invalid characters.
608
608
  */
609
- IGNORE_INVALID_CHARS,
609
+ IGNORE_INVALID_CHARS = 1,
610
610
  /**
611
611
  * Save file despite external modifications.
612
612
  */
613
- IGNORE_MODIFICATION_TIME,
613
+ IGNORE_MODIFICATION_TIME = 2,
614
614
  /**
615
615
  * Create a backup before saving the file.
616
616
  */
617
- CREATE_BACKUP,
617
+ CREATE_BACKUP = 4,
618
618
  }
619
619
 
620
620
 
@@ -632,22 +632,22 @@ export namespace GtkSource {
632
632
  /**
633
633
  * normal state
634
634
  */
635
- NORMAL,
635
+ NORMAL = 0,
636
636
  /**
637
637
  * area in the renderer represents the
638
638
  * line on which the insert cursor is currently positioned
639
639
  */
640
- CURSOR,
640
+ CURSOR = 1,
641
641
  /**
642
642
  * the mouse pointer is currently
643
643
  * over the activatable area of the renderer
644
644
  */
645
- PRELIT,
645
+ PRELIT = 2,
646
646
  /**
647
647
  * area in the renderer represents
648
648
  * a line in the buffer which contains part of the selection
649
649
  */
650
- SELECTED,
650
+ SELECTED = 4,
651
651
  }
652
652
 
653
653
 
@@ -666,19 +666,19 @@ export namespace GtkSource {
666
666
  /**
667
667
  * no flags specified
668
668
  */
669
- NONE,
669
+ NONE = 0,
670
670
  /**
671
671
  * case sensitive sort
672
672
  */
673
- CASE_SENSITIVE,
673
+ CASE_SENSITIVE = 1,
674
674
  /**
675
675
  * sort in reverse order
676
676
  */
677
- REVERSE_ORDER,
677
+ REVERSE_ORDER = 2,
678
678
  /**
679
679
  * remove duplicates
680
680
  */
681
- REMOVE_DUPLICATES,
681
+ REMOVE_DUPLICATES = 4,
682
682
  }
683
683
 
684
684
 
@@ -701,24 +701,24 @@ export namespace GtkSource {
701
701
  /**
702
702
  * No flags.
703
703
  */
704
- NONE,
704
+ NONE = 0,
705
705
  /**
706
706
  * Leading white spaces on a line, i.e. the
707
707
  * indentation.
708
708
  */
709
- LEADING,
709
+ LEADING = 1,
710
710
  /**
711
711
  * White spaces inside a line of text.
712
712
  */
713
- INSIDE_TEXT,
713
+ INSIDE_TEXT = 2,
714
714
  /**
715
715
  * Trailing white spaces on a line.
716
716
  */
717
- TRAILING,
717
+ TRAILING = 4,
718
718
  /**
719
719
  * White spaces anywhere.
720
720
  */
721
- ALL,
721
+ ALL = 7,
722
722
  }
723
723
 
724
724
 
@@ -738,29 +738,29 @@ export namespace GtkSource {
738
738
  /**
739
739
  * No flags.
740
740
  */
741
- NONE,
741
+ NONE = 0,
742
742
  /**
743
743
  * Space character.
744
744
  */
745
- SPACE,
745
+ SPACE = 1,
746
746
  /**
747
747
  * Tab character.
748
748
  */
749
- TAB,
749
+ TAB = 2,
750
750
  /**
751
751
  * Line break character. If the
752
752
  * {@link GtkSource.Buffer.implicit_trailing_newline} property is `true`,
753
753
  * {@link GtkSource.SpaceDrawer} also draws a line break at the end of the buffer.
754
754
  */
755
- NEWLINE,
755
+ NEWLINE = 4,
756
756
  /**
757
757
  * Non-breaking space character.
758
758
  */
759
- NBSP,
759
+ NBSP = 8,
760
760
  /**
761
761
  * All white spaces.
762
762
  */
763
- ALL,
763
+ ALL = 15,
764
764
  }
765
765
 
766
766
 
@@ -781,7 +781,7 @@ export namespace GtkSource {
781
781
  * @since 2.12
782
782
  * @run-last
783
783
  */
784
- "bracket-matched": (arg0: Gtk.TextIter, arg1: BracketMatchType) => void;
784
+ "bracket-matched": (iter: Gtk.TextIter, state: BracketMatchType) => void;
785
785
  /**
786
786
  * The ::highlight-updated signal is emitted when the syntax
787
787
  * highlighting and [context classes][context-classes] are updated in a
@@ -789,7 +789,7 @@ export namespace GtkSource {
789
789
  * @signal
790
790
  * @run-last
791
791
  */
792
- "highlight-updated": (arg0: Gtk.TextIter, arg1: Gtk.TextIter) => void;
792
+ "highlight-updated": (start: Gtk.TextIter, end: Gtk.TextIter) => void;
793
793
  /**
794
794
  * The ::redo signal is emitted to redo the last undo operation.
795
795
  * @signal
@@ -802,7 +802,7 @@ export namespace GtkSource {
802
802
  * @signal
803
803
  * @run-last
804
804
  */
805
- "source-mark-updated": (arg0: Gtk.TextMark) => void;
805
+ "source-mark-updated": (mark: Gtk.TextMark) => void;
806
806
  /**
807
807
  * The ::undo signal is emitted to undo the last user action which
808
808
  * modified the buffer.
@@ -1427,7 +1427,7 @@ export namespace GtkSource {
1427
1427
  * @action
1428
1428
  * @run-last
1429
1429
  */
1430
- "move-cursor": (arg0: Gtk.ScrollStep, arg1: number) => void;
1430
+ "move-cursor": (step: Gtk.ScrollStep, num: number) => void;
1431
1431
  /**
1432
1432
  * The {@link GtkSource.Completion.SignalSignatures.move_page | GtkSource.Completion::move-page} signal is a keybinding
1433
1433
  * signal which gets emitted when the user initiates a page
@@ -1452,7 +1452,7 @@ export namespace GtkSource {
1452
1452
  * @action
1453
1453
  * @run-last
1454
1454
  */
1455
- "move-page": (arg0: Gtk.ScrollStep, arg1: number) => void;
1455
+ "move-page": (step: Gtk.ScrollStep, num: number) => void;
1456
1456
  /**
1457
1457
  * Emitted just before starting to populate the completion with providers.
1458
1458
  * You can use this signal to add additional attributes in the context.
@@ -1460,7 +1460,7 @@ export namespace GtkSource {
1460
1460
  * @action
1461
1461
  * @run-last
1462
1462
  */
1463
- "populate-context": (arg0: CompletionContext) => void;
1463
+ "populate-context": (context: CompletionContext) => void;
1464
1464
  /**
1465
1465
  * Emitted when the completion window is shown. The default handler
1466
1466
  * will actually show the window.
@@ -1727,6 +1727,7 @@ export namespace GtkSource {
1727
1727
  * no longer need it.
1728
1728
  * @param provider a {@link GtkSource.CompletionProvider}.
1729
1729
  * @returns `true` if `provider` was successfully added, otherwise if `error` is provided, it will be set with the error and `false` is returned.
1730
+ * @throws GLib.Error
1730
1731
  */
1731
1732
  add_provider(provider: CompletionProvider): boolean;
1732
1733
 
@@ -1781,6 +1782,7 @@ export namespace GtkSource {
1781
1782
  * Remove `provider` from the completion.
1782
1783
  * @param provider a {@link GtkSource.CompletionProvider}.
1783
1784
  * @returns `true` if `provider` was successfully removed, otherwise if `error` is provided, it will be set with the error and `false` is returned.
1785
+ * @throws GLib.Error
1784
1786
  */
1785
1787
  remove_provider(provider: CompletionProvider): boolean;
1786
1788
 
@@ -2055,7 +2057,7 @@ export namespace GtkSource {
2055
2057
 
2056
2058
  namespace CompletionItem {
2057
2059
  // Signal signatures
2058
- interface SignalSignatures extends GObject.Object.SignalSignatures {}
2060
+ interface SignalSignatures extends GObject.Object.SignalSignatures, CompletionProposal.SignalSignatures {}
2059
2061
 
2060
2062
  // Constructor properties interface
2061
2063
  interface ConstructorProps extends GObject.Object.ConstructorProps, CompletionProposal.ConstructorProps {}
@@ -2734,6 +2736,7 @@ export namespace GtkSource {
2734
2736
  * @param result a {@link Gio.AsyncResult}.
2735
2737
  * @returns whether the contents has been loaded successfully.
2736
2738
  * @since 3.14
2739
+ * @throws GLib.Error
2737
2740
  */
2738
2741
  load_finish(result: Gio.AsyncResult): boolean;
2739
2742
 
@@ -2988,6 +2991,7 @@ export namespace GtkSource {
2988
2991
  * @param result a {@link Gio.AsyncResult}.
2989
2992
  * @returns whether the file was saved successfully.
2990
2993
  * @since 3.14
2994
+ * @throws GLib.Error
2991
2995
  */
2992
2996
  save_finish(result: Gio.AsyncResult): boolean;
2993
2997
 
@@ -3157,14 +3161,14 @@ export namespace GtkSource {
3157
3161
  * @signal
3158
3162
  * @run-last
3159
3163
  */
3160
- activate: (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: Gdk.Event) => void;
3164
+ activate: (iter: Gtk.TextIter, area: Gdk.Rectangle, event: Gdk.Event) => void;
3161
3165
  /**
3162
3166
  * The ::query-activatable signal is emitted when the renderer
3163
3167
  * can possibly be activated.
3164
3168
  * @signal
3165
3169
  * @run-last
3166
3170
  */
3167
- "query-activatable": (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: Gdk.Event) => boolean | void;
3171
+ "query-activatable": (iter: Gtk.TextIter, area: Gdk.Rectangle, event: Gdk.Event) => boolean | void;
3168
3172
  /**
3169
3173
  * The ::query-data signal is emitted when the renderer needs
3170
3174
  * to be filled with data just before a cell is drawn. This can
@@ -3173,14 +3177,14 @@ export namespace GtkSource {
3173
3177
  * @signal
3174
3178
  * @run-last
3175
3179
  */
3176
- "query-data": (arg0: Gtk.TextIter, arg1: Gtk.TextIter, arg2: GutterRendererState) => void;
3180
+ "query-data": (start: Gtk.TextIter, end: Gtk.TextIter, state: GutterRendererState) => void;
3177
3181
  /**
3178
3182
  * The ::query-tooltip signal is emitted when the renderer can
3179
3183
  * show a tooltip.
3180
3184
  * @signal
3181
3185
  * @run-last
3182
3186
  */
3183
- "query-tooltip": (arg0: Gtk.TextIter, arg1: Gdk.Rectangle, arg2: number, arg3: number, arg4: Gtk.Tooltip) => boolean | void;
3187
+ "query-tooltip": (iter: Gtk.TextIter, area: Gdk.Rectangle, x: number, y: number, tooltip: Gtk.Tooltip) => boolean | void;
3184
3188
  /**
3185
3189
  * The ::queue-draw signal is emitted when the renderer needs
3186
3190
  * to be redrawn. Use `gtk_source_gutter_renderer_queue_draw()`
@@ -4296,14 +4300,14 @@ export namespace GtkSource {
4296
4300
  * @signal
4297
4301
  * @run-last
4298
4302
  */
4299
- "query-tooltip-markup": (arg0: Mark) => string;
4303
+ "query-tooltip-markup": (mark: Mark) => string;
4300
4304
  /**
4301
4305
  * The code should connect to this signal to provide a tooltip for given
4302
4306
  * `mark`. The tooltip should be just a plain text.
4303
4307
  * @signal
4304
4308
  * @run-last
4305
4309
  */
4306
- "query-tooltip-text": (arg0: Mark) => string;
4310
+ "query-tooltip-text": (mark: Mark) => string;
4307
4311
  "notify::background": (pspec: GObject.ParamSpec) => void;
4308
4312
  "notify::gicon": (pspec: GObject.ParamSpec) => void;
4309
4313
  "notify::icon-name": (pspec: GObject.ParamSpec) => void;
@@ -5679,6 +5683,7 @@ export namespace GtkSource {
5679
5683
  * @param result a {@link Gio.AsyncResult}.
5680
5684
  * @returns whether a match was found.
5681
5685
  * @since 4.0
5686
+ * @throws GLib.Error
5682
5687
  */
5683
5688
  backward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5684
5689
 
@@ -5761,6 +5766,7 @@ export namespace GtkSource {
5761
5766
  * @param result a {@link Gio.AsyncResult}.
5762
5767
  * @returns whether a match was found.
5763
5768
  * @since 4.0
5769
+ * @throws GLib.Error
5764
5770
  */
5765
5771
  forward_finish(result: Gio.AsyncResult): [boolean, Gtk.TextIter | null, Gtk.TextIter | null, boolean];
5766
5772
 
@@ -5836,6 +5842,7 @@ export namespace GtkSource {
5836
5842
  * @param replace_length the length of `replace` in bytes, or -1.
5837
5843
  * @returns whether the match has been replaced.
5838
5844
  * @since 4.0
5845
+ * @throws GLib.Error
5839
5846
  */
5840
5847
  replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean;
5841
5848
 
@@ -5850,6 +5857,7 @@ export namespace GtkSource {
5850
5857
  * @param replace_length the length of `replace` in bytes, or -1.
5851
5858
  * @returns the number of replaced matches.
5852
5859
  * @since 3.10
5860
+ * @throws GLib.Error
5853
5861
  */
5854
5862
  replace_all(replace: string, replace_length: number): number;
5855
5863
 
@@ -6662,7 +6670,7 @@ export namespace GtkSource {
6662
6670
  * @action
6663
6671
  * @run-last
6664
6672
  */
6665
- "change-case": (arg0: ChangeCaseType) => void;
6673
+ "change-case": (case_type: ChangeCaseType) => void;
6666
6674
  /**
6667
6675
  * Keybinding signal to edit a number at the current cursor position.
6668
6676
  * @signal
@@ -6670,7 +6678,7 @@ export namespace GtkSource {
6670
6678
  * @action
6671
6679
  * @run-last
6672
6680
  */
6673
- "change-number": (arg0: number) => void;
6681
+ "change-number": (count: number) => void;
6674
6682
  /**
6675
6683
  * Keybinding signal to join the lines currently selected.
6676
6684
  * @signal
@@ -6686,7 +6694,7 @@ export namespace GtkSource {
6686
6694
  * @signal
6687
6695
  * @run-last
6688
6696
  */
6689
- "line-mark-activated": (arg0: Gtk.TextIter, arg1: Gdk.Event) => void;
6697
+ "line-mark-activated": (iter: Gtk.TextIter, event: Gdk.Event) => void;
6690
6698
  /**
6691
6699
  * The ::move-lines signal is a keybinding which gets emitted
6692
6700
  * when the user initiates moving a line. The default binding key
@@ -6696,7 +6704,7 @@ export namespace GtkSource {
6696
6704
  * @action
6697
6705
  * @run-last
6698
6706
  */
6699
- "move-lines": (arg0: boolean) => void;
6707
+ "move-lines": (down: boolean) => void;
6700
6708
  /**
6701
6709
  * Keybinding signal to move the cursor to the matching bracket.
6702
6710
  * @signal
@@ -6704,7 +6712,7 @@ export namespace GtkSource {
6704
6712
  * @action
6705
6713
  * @run-last
6706
6714
  */
6707
- "move-to-matching-bracket": (arg0: boolean) => void;
6715
+ "move-to-matching-bracket": (extend_selection: boolean) => void;
6708
6716
  /**
6709
6717
  * The ::move-words signal is a keybinding which gets emitted
6710
6718
  * when the user initiates moving a word. The default binding key
@@ -6715,7 +6723,7 @@ export namespace GtkSource {
6715
6723
  * @action
6716
6724
  * @run-last
6717
6725
  */
6718
- "move-words": (arg0: number) => void;
6726
+ "move-words": (count: number) => void;
6719
6727
  /**
6720
6728
  * @signal
6721
6729
  * @action
@@ -6748,7 +6756,7 @@ export namespace GtkSource {
6748
6756
  * @since 3.0
6749
6757
  * @run-last
6750
6758
  */
6751
- "smart-home-end": (arg0: Gtk.TextIter, arg1: number) => void;
6759
+ "smart-home-end": (iter: Gtk.TextIter, count: number) => void;
6752
6760
  /**
6753
6761
  * @signal
6754
6762
  * @action
@@ -8145,6 +8153,17 @@ export namespace GtkSource {
8145
8153
 
8146
8154
 
8147
8155
  namespace CompletionProposal {
8156
+ // Signal signatures
8157
+ interface SignalSignatures {
8158
+ /**
8159
+ * Emitted when the proposal has changed. The completion popup
8160
+ * will react to this by updating the shown information.
8161
+ * @signal
8162
+ * @action
8163
+ * @run-last
8164
+ */
8165
+ changed: () => void;
8166
+ }
8148
8167
  /**
8149
8168
  * Interface for implementing CompletionProposal.
8150
8169
  * Contains only the virtual methods that need to be implemented.
@@ -8638,6 +8657,25 @@ export namespace GtkSource {
8638
8657
  };
8639
8658
 
8640
8659
  namespace UndoManager {
8660
+ // Signal signatures
8661
+ interface SignalSignatures {
8662
+ /**
8663
+ * Emitted when the ability to redo has changed.
8664
+ * @signal
8665
+ * @since 2.10
8666
+ * @action
8667
+ * @run-last
8668
+ */
8669
+ "can-redo-changed": () => void;
8670
+ /**
8671
+ * Emitted when the ability to undo has changed.
8672
+ * @signal
8673
+ * @since 2.10
8674
+ * @action
8675
+ * @run-last
8676
+ */
8677
+ "can-undo-changed": () => void;
8678
+ }
8641
8679
  /**
8642
8680
  * Interface for implementing UndoManager.
8643
8681
  * Contains only the virtual methods that need to be implemented.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtksource-300",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "description": "GJS TypeScript type definitions for GtkSource-300",
5
5
  "type": "module",
6
6
  "module": "gtksource-300.js",
@@ -16,10 +16,10 @@
16
16
  "import": "./gtksource-300-import.js",
17
17
  "default": "./gtksource-300-import.js"
18
18
  },
19
- "./surface": {
20
- "types": "./gtksource-300-surface.d.ts",
21
- "import": "./gtksource-300-surface.js",
22
- "default": "./gtksource-300-surface.js"
19
+ "./vocabulary": {
20
+ "types": "./gtksource-300-vocabulary.d.ts",
21
+ "import": "./gtksource-300-vocabulary.js",
22
+ "default": "./gtksource-300-vocabulary.js"
23
23
  },
24
24
  "./gtksource-300": {
25
25
  "types": "./gtksource-300.d.ts",
@@ -36,20 +36,20 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^4.4.0",
40
- "@girs/gtk-3.0": "^4.4.0",
41
- "@girs/xlib-2.0": "^4.4.0",
42
- "@girs/gdk-3.0": "^4.4.0",
43
- "@girs/cairo-1.0": "^4.4.0",
44
- "@girs/gobject-2.0": "^4.4.0",
45
- "@girs/glib-2.0": "^4.4.0",
46
- "@girs/pango-1.0": "^4.4.0",
47
- "@girs/harfbuzz-0.0": "^4.4.0",
48
- "@girs/freetype2-2.0": "^4.4.0",
49
- "@girs/gio-2.0": "^4.4.0",
50
- "@girs/gmodule-2.0": "^4.4.0",
51
- "@girs/gdkpixbuf-2.0": "^4.4.0",
52
- "@girs/atk-1.0": "^4.4.0" },
39
+ "@girs/gjs": "^4.6.0",
40
+ "@girs/gtk-3.0": "^4.6.0",
41
+ "@girs/xlib-2.0": "^4.6.0",
42
+ "@girs/gdk-3.0": "^4.6.0",
43
+ "@girs/cairo-1.0": "^4.6.0",
44
+ "@girs/gobject-2.0": "^4.6.0",
45
+ "@girs/glib-2.0": "^4.6.0",
46
+ "@girs/pango-1.0": "^4.6.0",
47
+ "@girs/harfbuzz-0.0": "^4.6.0",
48
+ "@girs/freetype2-2.0": "^4.6.0",
49
+ "@girs/gio-2.0": "^4.6.0",
50
+ "@girs/gmodule-2.0": "^4.6.0",
51
+ "@girs/gdkpixbuf-2.0": "^4.6.0",
52
+ "@girs/atk-1.0": "^4.6.0" },
53
53
  "devDependencies": {
54
54
  "typescript": "*"
55
55
  },
package/tsconfig.json CHANGED
@@ -62,7 +62,7 @@
62
62
  ]
63
63
  }
64
64
  },
65
- "include": ["./gtksource-300.d.ts","./gtksource-300-surface.d.ts"]
65
+ "include": ["./gtksource-300.d.ts","./gtksource-300-vocabulary.d.ts"]
66
66
  }
67
67
 
68
68