Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function generateDocs(
rootFileNames: string[],
generateOptions: GenerateOptions = {},
): GenerateDocsResult {
rootFileNames = rootFileNames.map(n => fs.realpathSync(n))
const basePath = require('commondir')(rootFileNames.map(f => path.dirname(f)))
const { options } = ts.convertCompilerOptionsFromJson(
{ allowJs: true },
basePath,
)
const project = new Project({
compilerOptions: options,
})
const entrySourceFiles = project.addSourceFilesByPaths(rootFileNames)
const program = project.createProgram()
const typeChecker = program.getTypeChecker()
const languageService = project.getLanguageService()
if (generateOptions.debug) {
void languageService
debugger
}
const entryModuleSymbolIds: string[] = []
const entrySourceFileIds: string[] = []
function main() {