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.

8 lines 327 B
import { addStyleSheet, element } from "../../framework.js"; addStyleSheet(import.meta.url); export function ButtonControl(inner, onClick) { const button = element("button", { className: "buttoncontrol" }, inner); button.addEventListener("click", onClick); return button; } //# sourceMappingURL=ButtonControl.js.map