@canalplus/readme.doc
Version:
Readme's an Extremely Accessible Documentation MakEr
17 lines (16 loc) • 506 B
TypeScript
export interface FileSearchIndex {
fileURL: string;
h1: string | undefined;
h2?: string | undefined;
h3?: string | undefined;
body: string | undefined;
anchorH1?: string | undefined;
anchorH2?: string | undefined;
anchorH3?: string | undefined;
}
/**
* Generate search data linked to the given content.
* @param {string} contentHtml
* @returns {Array.<Object>}
*/
export default function getSearchDataForContent(contentHtml: string, fileURL: string): FileSearchIndex[];