cognitive-complexity-ts
Version:
This program analyses TypeScript and JavaScript code according to the [Cognitive Complexity metric](https://www.sonarsource.com/docs/CognitiveComplexity.pdf).
7 lines (6 loc) • 481 B
TypeScript
import * as ts from "typescript";
export declare function chooseContainerName(node: ts.Node, variableBeingDefined: string | undefined): string | undefined;
export declare function getIntroducedLocalName(node: ts.Node): string | undefined;
export declare function getNameIfCalledNode(node: ts.Node): string | undefined;
export declare function getNameOfAssignment(node: ts.Node): string | undefined;
export declare function getNameIfObjectMember(node: ts.Node): string | undefined;