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.

6 lines (5 loc) 181 B
import ts from "typescript"; import { Unreachable } from "./util"; export declare class UnreachableNodeState extends Unreachable { constructor(node: ts.Node, reason: string); }