minista-plugin-enhance
Version:
## About
21 lines (20 loc) • 504 B
TypeScript
import type { HTMLElement as NHTMLElement } from "node-html-parser";
import type { EnhancePage } from "./shared.js";
export * from "../node/index.js";
export type ImportedPages = {
[key: string]: {
default: () => EnhancePage;
};
};
export type FormatedPage = {
path: string;
} & EnhancePage;
export type ResolvedPage = {
path: string;
parsedHtml: NHTMLElement;
} & Omit<EnhancePage, "html">;
export type SsgPage = {
url: string;
fileName: string;
html: string;
};