Fix method names in NamedType class to use correct TypeScript override syntax for toURN and toString methods.

This commit is contained in:
2025-10-25 17:54:49 -04:00
parent 00332dc6b1
commit 1710043b74

View File

@@ -16,11 +16,11 @@ export class NamedType extends Type {
return super.equals(other) && other instanceof NamedType && this.getName() === other.getName();
}
public overridetoURN(): string {
public override toURN(): string {
return `urn:namedtype:${super.getType()}#${this._name}`;
}
public overridetoString(): string {
public override toString(): string {
return `${super.getType()}#${this._name}`;
}
}