Type guard: narrow an arbitrary value to SceneDimensions.
Only checks structural shape (.dimensions is an array). The downstream code does the per-dimension validation; this guard only rules out the obvious "not even an object with a dimensions field" cases.
.dimensions
Type guard: narrow an arbitrary value to SceneDimensions.
Only checks structural shape (
.dimensionsis an array). The downstream code does the per-dimension validation; this guard only rules out the obvious "not even an object with a dimensions field" cases.