@e280/quay
Version:
File-browser and outliner UI for the web
13 lines • 384 B
JavaScript
import { MapG } from "@e280/stz";
/** Defines the static details about each "kind" of data */
export class Taxonomy {
#taxons = new MapG();
constructor(taxons) {
for (const [kind, taxon] of Object.entries(taxons))
this.#taxons.set(kind, taxon);
}
taxon(kind) {
return this.#taxons.require(kind);
}
}
//# sourceMappingURL=taxonomy.js.map