@rr0/place
Version:
Place representation API
14 lines (13 loc) • 406 B
JavaScript
import { Place } from "./Place.js";
export class NamedPlace extends Place {
constructor(name, locations = [], elevation, dirName) {
super(locations, elevation, dirName);
this.name = name;
this.elevation = elevation;
this.dirName = dirName;
}
toString() {
var _a;
return (_a = this.name) !== null && _a !== void 0 ? _a : super.toString();
}
}