@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 +1 -1
- package/src/parser.ts +1 -0
- package/src/types.ts +2 -0
package/package.json
CHANGED
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. */
|