@girs/gcr-4 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/gcr-4)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gcr-4)
6
6
 
7
- GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
7
+ GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.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.
@@ -536,6 +536,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
536
536
  */
537
537
  export const PROP_ENUMS: Readonly<Record<string, string>>;
538
538
 
539
+ /**
540
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
541
+ *
542
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
543
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
544
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
545
+ * reads this one; a host resolving a nick to a number reads that one.
546
+ *
547
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
548
+ * like any other, so absence is readable as "unknown".
549
+ */
550
+ export const PROP_TYPES: Readonly<Record<string, string>>;
551
+
539
552
  /**
540
553
  * The kinds of value a GTK accessible property, relation or state takes.
541
554
  *
@@ -159,6 +159,40 @@ export const FLAG_VALUES_UNREADABLE = {};
159
159
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
160
160
  export const PROP_ENUMS = {};
161
161
 
162
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
163
+ //
164
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
165
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
166
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
167
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
168
+ //
169
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
170
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
171
+ // child. Absence therefore reads as "unknown" and never as "scalar".
172
+ export const PROP_TYPES = {
173
+ 'GcrCertificateExtension.critical': 'gboolean',
174
+ 'GcrCertificateField.label': 'gchararray',
175
+ 'GcrCertificateField.section': 'GcrCertificateSection',
176
+ 'GcrCertificateRequest.private-key': 'GckObject',
177
+ 'GcrCertificateSection.label': 'gchararray',
178
+ 'GcrPrompt.caller-window': 'gchararray',
179
+ 'GcrPrompt.cancel-label': 'gchararray',
180
+ 'GcrPrompt.choice-chosen': 'gboolean',
181
+ 'GcrPrompt.choice-label': 'gchararray',
182
+ 'GcrPrompt.continue-label': 'gchararray',
183
+ 'GcrPrompt.description': 'gchararray',
184
+ 'GcrPrompt.message': 'gchararray',
185
+ 'GcrPrompt.password-new': 'gboolean',
186
+ 'GcrPrompt.title': 'gchararray',
187
+ 'GcrPrompt.warning': 'gchararray',
188
+ 'GcrSecretExchange.protocol': 'gchararray',
189
+ 'GcrSshAskpass.interaction': 'GTlsInteraction',
190
+ 'GcrSystemPrompt.bus-name': 'gchararray',
191
+ 'GcrSystemPrompt.secret-exchange': 'GcrSecretExchange',
192
+ 'GcrSystemPrompt.timeout-seconds': 'gint',
193
+ 'GcrSystemPrompter.prompt-type': 'GType',
194
+ };
195
+
162
196
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
163
197
  //
164
198
  // 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/gcr-4",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "libraryVersion": "4.4.0",
5
5
  "description": "GJS TypeScript type definitions for Gcr-4, generated from library version 4.4.0",
6
6
  "type": "module",
@@ -37,12 +37,12 @@
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",
45
- "@girs/gck-2": "^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
+ "@girs/gck-2": "^5.4.0" },
46
46
  "devDependencies": {
47
47
  "typescript": "*"
48
48
  },