Fix TS2709: use typeof SimulationsRegistry as type argument
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:
parent
8b480df98c
commit
7d34ce8f10
1 changed files with 1 additions and 1 deletions
|
|
@ -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", () => ({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue