From ea06359b356f25756d2100a58e8257e6162778d7 Mon Sep 17 00:00:00 2001 From: Ryan Rauh Date: Sun, 14 Jun 2026 10:32:13 -0400 Subject: [PATCH] Remove explicit any from border tests --- test/border.test.ts | 5 ++--- test/validate.test.ts | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/border.test.ts b/test/border.test.ts index a81c5e6..3b78100 100644 --- a/test/border.test.ts +++ b/test/border.test.ts @@ -1,4 +1,4 @@ -import { close, fixed, open, rgba } from "../ops.ts"; +import { close, fixed, open, type OpenElement, rgba } from "../ops.ts"; import { createTerm } from "../term.ts"; import { describe, expect, it } from "./suite.ts"; @@ -101,8 +101,7 @@ const CORNERS = "┌┐└┘╭╮╰╯"; /* ── Render helper ────────────────────────────────────────────────── */ -// deno-lint-ignore no-explicit-any -type OpenProps = any; +type OpenProps = Omit; /** Renders an 8x4 "box" element at the origin of a 12x5 term in line * mode and parses the full-frame output into cells. Box corners are at diff --git a/test/validate.test.ts b/test/validate.test.ts index 2392218..5f2afec 100644 --- a/test/validate.test.ts +++ b/test/validate.test.ts @@ -274,8 +274,9 @@ describe("validated", () => { { directive: 0x02, id: "x", border: { color: 0xFF0000, top: {} } }, close(), ]; - // deno-lint-ignore no-explicit-any - expect(() => term.render(invalid as any)).toThrow(TypeError); + expect(() => Reflect.apply(term.render, term, [invalid])).toThrow( + TypeError, + ); }); it("throws on an invalid structured border side color", () => { -- 2.51.2