Reference
exports-md
Functions
findNearestTypescript
export function findNearestTypescript(startDir?: string): string;
š findNearestTypescript on GitHub
generateMarkdownForModule
export function generateMarkdownForModule(modulePath: string, options?: GenerateMarkdownOptions): Promise<GeneratedMarkdown>;
š generateMarkdownForModule on GitHub
Types
GeneratedMarkdown
export interface GeneratedMarkdown {
declaration: string;
fromCache: boolean;
inputFile: string;
markdown: string;
warnings: string[];
}
š GeneratedMarkdown on GitHub
GenerateMarkdownOptions
export interface GenerateMarkdownOptions {
cwd?: string;
followImports?: boolean;
followReExports?: boolean;
github?: GitHubOptions;
outDir?: string;
propertyDocs?: PropertyDocMode;
reverseSymbols?: boolean;
groupBySyntax?: boolean;
sortByName?: boolean;
symbols?: string[];
}
š GenerateMarkdownOptions on GitHub
GitHubOptions
export interface GitHubOptions {
repository?: string;
searchLinks?: boolean;
}
PropertyDocMode
export type PropertyDocMode = 'inline' | 'list';