@gtkx/gir 0.3.2 → 0.3.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtkx/gir",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "GObject Introspection file parser for GTKX",
5
5
  "keywords": [
6
6
  "gtk",
package/src/types.ts CHANGED
@@ -418,7 +418,7 @@ export class TypeRegistry {
418
418
  * @param namespace - The namespace containing the class
419
419
  * @param name - The class name
420
420
  */
421
- registerClass(namespace: string, name: string): void {
421
+ registerType(namespace: string, name: string): void {
422
422
  const transformedName = normalizeTypeName(name);
423
423
  this.types.set(`${namespace}.${name}`, {
424
424
  kind: "class",
@@ -521,7 +521,7 @@ export class TypeRegistry {
521
521
  const registry = new TypeRegistry();
522
522
  for (const ns of namespaces) {
523
523
  for (const cls of ns.classes) {
524
- registry.registerClass(ns.name, cls.name);
524
+ registry.registerType(ns.name, cls.name);
525
525
  }
526
526
  for (const iface of ns.interfaces) {
527
527
  registry.registerInterface(ns.name, iface.name);