refactor: split api into api, api-cli & api-plugin

This commit is contained in:
2023-06-02 16:41:25 +02:00
parent 495a63977c
commit b21833de40
205 changed files with 1981 additions and 1492 deletions

View File

@@ -19,7 +19,6 @@ import {Application, ProjectReflection} from 'typedoc';
/**
* Get a project reflection from a path
*
* @param sourcePath Path to get reflection from
* @param excludeExternals Exclude external dependencies
*/
@@ -49,7 +48,7 @@ export function getProjectReflection(sourcePath: PathLike, excludeExternals = tr
// get project reflection from input files
const result = app.convert(inputFiles);
if (typeof result === 'undefined') {
if (result === undefined) {
throw new TypeError('Project reflection could not be generated.');
}
@@ -58,7 +57,6 @@ export function getProjectReflection(sourcePath: PathLike, excludeExternals = tr
/**
* Get path that contains a tsconfig.json
*
* @param startPath Path from where to start searching "upwards"
*/
export function getTsconfigPath(startPath: string): string {