Update types in runtime-host.test.ts
This commit is contained in:
@@ -3,12 +3,16 @@ import { afterEach, describe, expect, it, vi } from "vitest";
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
createLightControlTargetRef,
|
createLightControlTargetRef,
|
||||||
|
type ControlEffect,
|
||||||
createSetLightEnabledControlEffect,
|
createSetLightEnabledControlEffect,
|
||||||
createSetLightIntensityControlEffect
|
createSetLightIntensityControlEffect
|
||||||
} from "../../src/controls/control-surface";
|
} from "../../src/controls/control-surface";
|
||||||
import { createEmptySceneDocument } from "../../src/document/scene-document";
|
import { createEmptySceneDocument } from "../../src/document/scene-document";
|
||||||
import { createPointLightEntity } from "../../src/entities/entity-instances";
|
import { createPointLightEntity } from "../../src/entities/entity-instances";
|
||||||
import { createControlInteractionLink } from "../../src/interactions/interaction-links";
|
import {
|
||||||
|
createControlInteractionLink,
|
||||||
|
type InteractionLink
|
||||||
|
} from "../../src/interactions/interaction-links";
|
||||||
import { RapierCollisionWorld } from "../../src/runtime-three/rapier-collision-world";
|
import { RapierCollisionWorld } from "../../src/runtime-three/rapier-collision-world";
|
||||||
import {
|
import {
|
||||||
RuntimeHost,
|
RuntimeHost,
|
||||||
@@ -139,7 +143,7 @@ describe("RuntimeHost", () => {
|
|||||||
});
|
});
|
||||||
const hostInternals = host as unknown as {
|
const hostInternals = host as unknown as {
|
||||||
createInteractionDispatcher(): {
|
createInteractionDispatcher(): {
|
||||||
dispatchControlEffect(effect: typeof disableEffect, link: typeof disableLink): void;
|
dispatchControlEffect(effect: ControlEffect, link: InteractionLink): void;
|
||||||
};
|
};
|
||||||
localLightObjects: Map<
|
localLightObjects: Map<
|
||||||
string,
|
string,
|
||||||
|
|||||||
Reference in New Issue
Block a user