@girs/cogl-15 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/cogl-15)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/cogl-15)
6
6
 
7
- GJS TypeScript type definitions for Cogl-15 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
7
+ GJS TypeScript type definitions for Cogl-15 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.
@@ -443,6 +443,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
443
443
  */
444
444
  export const PROP_ENUMS: Readonly<Record<string, string>>;
445
445
 
446
+ /**
447
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
448
+ *
449
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
450
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
451
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
452
+ * reads this one; a host resolving a nick to a number reads that one.
453
+ *
454
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
455
+ * like any other, so absence is readable as "unknown".
456
+ */
457
+ export const PROP_TYPES: Readonly<Record<string, string>>;
458
+
446
459
  /**
447
460
  * The kinds of value a GTK accessible property, relation or state takes.
448
461
  *
@@ -224,6 +224,32 @@ export const PROP_ENUMS = {
224
224
  'CoglTexture.format': 'CoglPixelFormat',
225
225
  };
226
226
 
227
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
228
+ //
229
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
230
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
231
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
232
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
233
+ //
234
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
235
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
236
+ // child. Absence therefore reads as "unknown" and never as "scalar".
237
+ export const PROP_TYPES = {
238
+ 'CoglBuffer.context': 'CoglContext',
239
+ 'CoglBuffer.default-target': 'CoglBufferBindTarget',
240
+ 'CoglBuffer.size': 'guint64',
241
+ 'CoglBuffer.update-hint': 'CoglBufferUpdateHint',
242
+ 'CoglFramebuffer.context': 'CoglContext',
243
+ 'CoglFramebuffer.driver-config': 'gpointer',
244
+ 'CoglFramebuffer.height': 'gint',
245
+ 'CoglFramebuffer.width': 'gint',
246
+ 'CoglTexture.context': 'CoglContext',
247
+ 'CoglTexture.format': 'CoglPixelFormat',
248
+ 'CoglTexture.height': 'gint',
249
+ 'CoglTexture.loader': 'gpointer',
250
+ 'CoglTexture.width': 'gint',
251
+ };
252
+
227
253
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
228
254
  //
229
255
  // 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/cogl-15",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for Cogl-15",
5
5
  "type": "module",
6
6
  "module": "cogl-15.js",
@@ -36,13 +36,13 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.3.0",
40
- "@girs/xlib-2.0": "^5.3.0",
41
- "@girs/mtk-15": "^5.3.0",
42
- "@girs/graphene-1.0": "^5.3.0",
43
- "@girs/gobject-2.0": "^5.3.0",
44
- "@girs/glib-2.0": "^5.3.0",
45
- "@girs/gl-1.0": "^5.3.0" },
39
+ "@girs/gjs": "^5.4.0",
40
+ "@girs/xlib-2.0": "^5.4.0",
41
+ "@girs/mtk-15": "^5.4.0",
42
+ "@girs/graphene-1.0": "^5.4.0",
43
+ "@girs/gobject-2.0": "^5.4.0",
44
+ "@girs/glib-2.0": "^5.4.0",
45
+ "@girs/gl-1.0": "^5.4.0" },
46
46
  "devDependencies": {
47
47
  "typescript": "*"
48
48
  },