@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
20 lines (19 loc) • 686 B
TypeScript
import { ViewName } from '../type';
export declare class Taxonomy {
private taxonomies;
private views;
private viewsByTreeKey;
constructor(taxonomies: Record<string, string>);
getViews(): ViewName[];
getTaxonomies(): Record<string, string>;
getViewByTreeKey(treeKey: string): ViewName | undefined;
hasTaxonomy(singular: string): boolean;
getPluralForm(singular: string): string | undefined;
getSingularForm(plural: string): string | undefined;
getSingularForms(): string[];
getPluralForms(): string[];
private setupViews;
getViewCount(): number;
isEmpty(): boolean;
}
export declare function newTaxonomy(data: any): Taxonomy;