chore(ui): clear test and declaration any bucket

Replace low-risk any usages in test harnesses, specs, and epubjs type declarations with concrete unions, unknown, or Angular form types so the no-explicit-any backlog starts shrinking without changing runtime behavior.

Validation: just ui lint
This commit is contained in:
James Cox
2026-04-22 17:26:50 -04:00
committed by Zach Yale
parent 878cfa09c8
commit 2e66fd30b6
4 changed files with 24 additions and 19 deletions
+6 -2
View File
@@ -3,9 +3,13 @@ import 'zone.js/testing';
import {TestBed} from '@angular/core/testing';
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
declare global {
var __ANGULAR_TESTBED_INITIALIZED__: boolean | undefined;
}
// Only initialize if not already initialized
if (!(globalThis as any).__ANGULAR_TESTBED_INITIALIZED__) {
(globalThis as any).__ANGULAR_TESTBED_INITIALIZED__ = true;
if (!globalThis.__ANGULAR_TESTBED_INITIALIZED__) {
globalThis.__ANGULAR_TESTBED_INITIALIZED__ = true;
TestBed.initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),