[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

Remove explicit any from border tests

Ryan Rauh (Jun 14, 2026, 10:32 AM EDT) ea06359b 9116d1fb

+5 -5
+2 -3
test/border.test.ts
··· 1 - import { close, fixed, open, rgba } from "../ops.ts"; 1 + import { close, fixed, open, type OpenElement, rgba } from "../ops.ts"; 2 2 import { createTerm } from "../term.ts"; 3 3 import { describe, expect, it } from "./suite.ts"; 4 4 ··· 101 101 102 102 /* ── Render helper ────────────────────────────────────────────────── */ 103 103 104 - // deno-lint-ignore no-explicit-any 105 - type OpenProps = any; 104 + type OpenProps = Omit<OpenElement, "directive" | "id">; 106 105 107 106 /** Renders an 8x4 "box" element at the origin of a 12x5 term in line 108 107 * mode and parses the full-frame output into cells. Box corners are at
+3 -2
test/validate.test.ts
··· 274 274 { directive: 0x02, id: "x", border: { color: 0xFF0000, top: {} } }, 275 275 close(), 276 276 ]; 277 - // deno-lint-ignore no-explicit-any 278 - expect(() => term.render(invalid as any)).toThrow(TypeError); 277 + expect(() => Reflect.apply(term.render, term, [invalid])).toThrow( 278 + TypeError, 279 + ); 279 280 }); 280 281 281 282 it("throws on an invalid structured border side color", () => {