@girs/manette-1 5.3.0 → 5.4.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,7 +4,7 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/manette-1)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/manette-1)
6
6
 
7
- GJS TypeScript type definitions for Manette-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
7
+ GJS TypeScript type definitions for Manette-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.4.0.
8
8
 
9
9
  This package contains type declarations only. It ships no runtime code, so it adds
10
10
  nothing to your program and works with any bundler or none at all.
@@ -278,6 +278,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
278
278
  */
279
279
  export const PROP_ENUMS: Readonly<Record<string, string>>;
280
280
 
281
+ /**
282
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
283
+ *
284
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
285
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
286
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
287
+ * reads this one; a host resolving a nick to a number reads that one.
288
+ *
289
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
290
+ * like any other, so absence is readable as "unknown".
291
+ */
292
+ export const PROP_TYPES: Readonly<Record<string, string>>;
293
+
281
294
  /**
282
295
  * The kinds of value a GTK accessible property, relation or state takes.
283
296
  *
@@ -160,6 +160,18 @@ export const FLAG_VALUES_UNREADABLE = {};
160
160
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
161
161
  export const PROP_ENUMS = {};
162
162
 
163
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
164
+ //
165
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
166
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
167
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
168
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
169
+ //
170
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
171
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
172
+ // child. Absence therefore reads as "unknown" and never as "scalar".
173
+ export const PROP_TYPES = {};
174
+
163
175
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
164
176
  //
165
177
  // The one table here that is not about a ParamSpec. A GtkBuilder or Blueprint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/manette-1",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "libraryVersion": "1.0.0",
5
5
  "description": "GJS TypeScript type definitions for Manette-1, generated from library version 1.0.0",
6
6
  "type": "module",
@@ -37,11 +37,11 @@
37
37
  "test": "tsc --project tsconfig.json"
38
38
  },
39
39
  "dependencies": {
40
- "@girs/gjs": "^5.3.0",
41
- "@girs/gio-2.0": "^5.3.0",
42
- "@girs/gobject-2.0": "^5.3.0",
43
- "@girs/glib-2.0": "^5.3.0",
44
- "@girs/gmodule-2.0": "^5.3.0" },
40
+ "@girs/gjs": "^5.4.0",
41
+ "@girs/gio-2.0": "^5.4.0",
42
+ "@girs/gobject-2.0": "^5.4.0",
43
+ "@girs/glib-2.0": "^5.4.0",
44
+ "@girs/gmodule-2.0": "^5.4.0" },
45
45
  "devDependencies": {
46
46
  "typescript": "*"
47
47
  },