ui: fixup types

This commit is contained in:
Johannes Kirschbauer
2025-07-29 10:03:42 +02:00
parent 782e8b330d
commit 323de27651
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { Accessor, createEffect, createRoot, on } from "solid-js";
import { Accessor, createEffect, createRoot } from "solid-js";
import { MachineRepr } from "./MachineRepr";
import * as THREE from "three";
import { SceneData } from "../stores/clan";
@@ -13,7 +13,7 @@ function keyFromPos(pos: [number, number]): string {
const CUBE_SPACING = 2;
export class MachineManager {
public machines: Map<string, MachineRepr> = new Map();
public machines = new Map<string, MachineRepr>();
private disposeRoot: () => void;

View File

@@ -1,11 +1,11 @@
import * as THREE from "three";
type ObjectEntry = {
interface ObjectEntry {
object: THREE.Object3D;
type: string;
id: string;
dispose?: () => void;
};
}
export class ObjectRegistry {
#objects = new Map<string, ObjectEntry>();