@isotope/docking
Version:
Docking - Isotope-based Static Site Generator
22 lines (21 loc) • 643 B
TypeScript
import { Component } from "../resources";
import { RollupCache } from "rollup";
interface ComponentsParsingOptions {
cache?: RollupCache;
components: Component[];
currentDir: string;
page: string;
production: boolean;
}
interface ComponentsParsingOutput {
cache?: RollupCache;
parsed: string;
}
/**
* Parses dynamic components' scripts to HTML string.
*
* @param options - Component scripts parsing options.
* @returns - Parsed scripts.
*/
declare const parseScripts: ({ cache, components, currentDir, page, production }: ComponentsParsingOptions) => Promise<ComponentsParsingOutput>;
export { parseScripts };