Fix TS2709: use typeof SimulationsRegistry as type argument
All checks were successful
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Successful in 1m19s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m3s

Namespace imports must be referenced with typeof when used as a type parameter.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPrEA7jt8Y47Cewq22gMyv
This commit is contained in:
Claude 2026-06-26 07:20:58 +00:00
parent 8b480df98c
commit 7d34ce8f10
No known key found for this signature in database

View file

@ -25,7 +25,7 @@ vi.mock("~/models/scoring-calculator", () => ({
vi.mock("~/services/simulations/registry", async (importOriginal) => {
// Keep the real SIMULATOR_TYPES / getSimulatorInfo so the manifest (pulled in
// transitively via input-policy) can build; only stub getSimulator.
const actual = await importOriginal<SimulationsRegistry>();
const actual = await importOriginal<typeof SimulationsRegistry>();
return { ...actual, getSimulator: vi.fn() };
});
vi.mock("~/services/simulations/simulation-probabilities", () => ({