@gtkx/gir 0.3.0 → 0.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/gir",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "GObject Introspection file parser for GTKX",
5
5
  "keywords": [
6
6
  "gtk",
package/src/parser.ts CHANGED
@@ -168,6 +168,7 @@ export class GirParser {
168
168
  return interfaces.map((iface) => ({
169
169
  name: String(iface["@_name"] ?? ""),
170
170
  cType: String(iface["@_c:type"] ?? iface["@_glib:type-name"] ?? ""),
171
+ glibTypeName: iface["@_glib:type-name"] ? String(iface["@_glib:type-name"]) : undefined,
171
172
  methods: this.parseMethods(ensureArray(iface.method)),
172
173
  properties: this.parseProperties(ensureArray(iface.property)),
173
174
  signals: this.parseSignals(ensureArray(iface["glib:signal"])),
package/src/types.ts CHANGED
@@ -52,6 +52,8 @@ export interface GirInterface {
52
52
  name: string;
53
53
  /** The C type name. */
54
54
  cType: string;
55
+ /** The GLib type name. */
56
+ glibTypeName?: string;
55
57
  /** Methods defined on this interface. */
56
58
  methods: GirMethod[];
57
59
  /** Properties defined on this interface. */