UNPKG

cognitive-complexity-ts

Version:

This program analyses TypeScript and JavaScript code according to the [Cognitive Complexity metric](https://www.sonarsource.com/docs/CognitiveComplexity.pdf).

15 lines (14 loc) 568 B
/** * Functions to apply Cognitive Complexity to files and folders. */ import { FileOutput, FolderOutput } from "../../shared/types"; /** * @param entry A file system entry path */ export declare function getFileOrFolderOutput(entryPath: string): Promise<FileOutput | FolderOutput>; export declare function getFileOutput(filePath: string): Promise<FileOutput>; export declare function getFolderOutput(folderPath: string): Promise<FolderOutput>; /** * @param entryPath Relative to cwd */ export declare function programOutput(entryPath: string): Promise<string>;