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). It produces a JSON summary and a GUI for exploring the complexity of your codebase.

4 lines (3 loc) 159 B
import * as ts from "typescript"; export declare const testLog: (msg: string, ...param: any[]) => void; export declare function logNode(child: ts.Node): void;