@girs/cvc-1.0 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/cvc-1.0)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/cvc-1.0)
6
6
 
7
- GJS TypeScript type definitions for Cvc-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
7
+ GJS TypeScript type definitions for Cvc-1.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.
@@ -383,6 +383,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
383
383
  */
384
384
  export const PROP_ENUMS: Readonly<Record<string, string>>;
385
385
 
386
+ /**
387
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
388
+ *
389
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
390
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
391
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
392
+ * reads this one; a host resolving a nick to a number reads that one.
393
+ *
394
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
395
+ * like any other, so absence is readable as "unknown".
396
+ */
397
+ export const PROP_TYPES: Readonly<Record<string, string>>;
398
+
386
399
  /**
387
400
  * The kinds of value a GTK accessible property, relation or state takes.
388
401
  *
@@ -157,6 +157,54 @@ export const PROP_ENUMS = {
157
157
  'GvcMixerStream.state': 'GvcMixerStreamState',
158
158
  };
159
159
 
160
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
161
+ //
162
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
163
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
164
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
165
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
166
+ //
167
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
168
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
169
+ // child. Absence therefore reads as "unknown" and never as "scalar".
170
+ export const PROP_TYPES = {
171
+ 'GvcMixerCard.icon-name': 'gchararray',
172
+ 'GvcMixerCard.id': 'gulong',
173
+ 'GvcMixerCard.index': 'gulong',
174
+ 'GvcMixerCard.name': 'gchararray',
175
+ 'GvcMixerCard.pa-context': 'gpointer',
176
+ 'GvcMixerCard.profile': 'gchararray',
177
+ 'GvcMixerControl.name': 'gchararray',
178
+ 'GvcMixerEventRole.device': 'gchararray',
179
+ 'GvcMixerStream.application-id': 'gchararray',
180
+ 'GvcMixerStream.can-decibel': 'gboolean',
181
+ 'GvcMixerStream.card-index': 'glong',
182
+ 'GvcMixerStream.channel-map': 'GvcChannelMap',
183
+ 'GvcMixerStream.decibel': 'gdouble',
184
+ 'GvcMixerStream.description': 'gchararray',
185
+ 'GvcMixerStream.form-factor': 'gchararray',
186
+ 'GvcMixerStream.icon-name': 'gchararray',
187
+ 'GvcMixerStream.id': 'gulong',
188
+ 'GvcMixerStream.index': 'gulong',
189
+ 'GvcMixerStream.is-event-stream': 'gboolean',
190
+ 'GvcMixerStream.is-muted': 'gboolean',
191
+ 'GvcMixerStream.is-virtual': 'gboolean',
192
+ 'GvcMixerStream.name': 'gchararray',
193
+ 'GvcMixerStream.pa-context': 'gpointer',
194
+ 'GvcMixerStream.port': 'gchararray',
195
+ 'GvcMixerStream.state': 'GvcMixerStreamState',
196
+ 'GvcMixerStream.sysfs-path': 'gchararray',
197
+ 'GvcMixerStream.volume': 'gulong',
198
+ 'GvcMixerUIDevice.card': 'gpointer',
199
+ 'GvcMixerUIDevice.description': 'gchararray',
200
+ 'GvcMixerUIDevice.icon-name': 'gchararray',
201
+ 'GvcMixerUIDevice.origin': 'gchararray',
202
+ 'GvcMixerUIDevice.port-available': 'gboolean',
203
+ 'GvcMixerUIDevice.port-name': 'gchararray',
204
+ 'GvcMixerUIDevice.stream-id': 'guint',
205
+ 'GvcMixerUIDevice.type': 'guint',
206
+ };
207
+
160
208
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
161
209
  //
162
210
  // 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/cvc-1.0",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for Cvc-1.0",
5
5
  "type": "module",
6
6
  "module": "cvc-1.0.js",
@@ -36,11 +36,11 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.3.0",
40
- "@girs/gio-2.0": "^5.3.0",
41
- "@girs/gobject-2.0": "^5.3.0",
42
- "@girs/glib-2.0": "^5.3.0",
43
- "@girs/gmodule-2.0": "^5.3.0" },
39
+ "@girs/gjs": "^5.4.0",
40
+ "@girs/gio-2.0": "^5.4.0",
41
+ "@girs/gobject-2.0": "^5.4.0",
42
+ "@girs/glib-2.0": "^5.4.0",
43
+ "@girs/gmodule-2.0": "^5.4.0" },
44
44
  "devDependencies": {
45
45
  "typescript": "*"
46
46
  },