Type safety: Use ReadonlyArray for points in junction mesh path

This commit is contained in:
2026-05-13 13:31:48 +02:00
parent 9086d29eda
commit 2b8367120a

View File

@@ -22,7 +22,7 @@ export interface SplineCorridorJunctionMeshPathLike {
glueToTerrain?: boolean;
terrainOffset?: number;
road: ScenePathRoadSettings;
points: readonly Array<{
points: ReadonlyArray<{
id?: string;
pointId?: string;
position: Vec3;
@@ -190,4 +190,3 @@ export function buildSplineCorridorJunctionMeshGeometry(options: {
geometry.computeBoundingSphere();
return geometry;
}