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