@girs/gcalc-2 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/gcalc-2)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gcalc-2)
6
6
 
7
- GJS TypeScript type definitions for GCalc-2 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
7
+ GJS TypeScript type definitions for GCalc-2 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.
@@ -601,6 +601,19 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
601
601
  */
602
602
  export const PROP_ENUMS: Readonly<Record<string, string>>;
603
603
 
604
+ /**
605
+ * `<declaration GType>.<property>` -> the GType of that property's own type.
606
+ *
607
+ * `PROP_ENUMS` one case wider, and separate on purpose: that table promises the GType it names
608
+ * has NUMBERS, and this one promises only that the GType is the property's. A host inferring a
609
+ * type from a property — the middle of an uncast lookup chain, an uncast closure's return type —
610
+ * reads this one; a host resolving a nick to a number reads that one.
611
+ *
612
+ * Absent means no GType can be stated, not that the property is scalar: `gchararray` is carried
613
+ * like any other, so absence is readable as "unknown".
614
+ */
615
+ export const PROP_TYPES: Readonly<Record<string, string>>;
616
+
604
617
  /**
605
618
  * The kinds of value a GTK accessible property, relation or state takes.
606
619
  *
@@ -219,6 +219,31 @@ export const PROP_ENUMS = {
219
219
  'GCalcMathGroup.level': 'GCalcMathGroupLevel',
220
220
  };
221
221
 
222
+ // `<declaration GType>.<property>` -> the GType of that property's own type.
223
+ //
224
+ // `PROP_ENUMS` one case wider, and a SEPARATE table on purpose. That one is a join with a
225
+ // contract — the GType it names has numbers, in this vocabulary or the owner's — and folding a
226
+ // plain type table in would mix "resolvable to numbers" with "not" and hand the distinction to
227
+ // the consumer. `ARIA_VALUE_ENUMS` beside `ARIA_VALUE_TYPES` is the same split.
228
+ //
229
+ // A row is ABSENT where no GType can be stated: a fundamental spelling outside the generator's
230
+ // closed map, a registered type with no `glib:type-name`, or a property with no `<type>`
231
+ // child. Absence therefore reads as "unknown" and never as "scalar".
232
+ export const PROP_TYPES = {
233
+ 'GCalcExpressionContainer.parent': 'GCalcMathExpression',
234
+ 'GCalcExpressionHashMap.parent': 'GCalcMathExpression',
235
+ 'GCalcMathExpression.parent': 'GCalcMathExpression',
236
+ 'GCalcMathFunction.closed': 'gboolean',
237
+ 'GCalcMathFunction.n-params': 'guint',
238
+ 'GCalcMathFunction.name': 'gchararray',
239
+ 'GCalcMathGroup.closed': 'gboolean',
240
+ 'GCalcMathGroup.level': 'GCalcMathGroupLevel',
241
+ 'GCalcMathVariable.bind': 'GCalcMathVariable',
242
+ 'GCalcMathVariable.name': 'gchararray',
243
+ 'GCalcMathVariable.value': 'GCalcMathConstant',
244
+ 'GCalcSolver.equation-manager': 'GCalcMathEquationManager',
245
+ };
246
+
222
247
  // `<enum GType>.<nick>` -> the kind of value that ARIA slot takes.
223
248
  //
224
249
  // 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/gcalc-2",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "GJS TypeScript type definitions for GCalc-2",
5
5
  "type": "module",
6
6
  "module": "gcalc-2.js",
@@ -36,12 +36,12 @@
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",
44
- "@girs/gee-0.8": "^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
+ "@girs/gee-0.8": "^5.4.0" },
45
45
  "devDependencies": {
46
46
  "typescript": "*"
47
47
  },