# types.ts — Types

Shared TypeScript types used across the frontend.

**`<strong class="editor-theme-bold editor-theme-code">Sample</strong>`**<span style="white-space: pre-wrap;"> — represents a single science sample collected by the rover. Contains location name, coordinates, before/after image paths, measurement, weight, and a set of boolean </span>`<span class="editor-theme-code">_check</span>`<span style="white-space: pre-wrap;"> flags tracking which fields have been filled in. The </span>`<span class="editor-theme-code">all_check</span>`<span style="white-space: pre-wrap;"> flag is true when all required fields are complete.</span>

**`<strong class="editor-theme-bold editor-theme-code">Waypoint</strong>`**<span style="white-space: pre-wrap;"> — a map waypoint with an </span>`<span class="editor-theme-code">id</span>`<span style="white-space: pre-wrap;">, </span>`<span class="editor-theme-code">lat</span>`<span style="white-space: pre-wrap;">, and </span>`<span class="editor-theme-code">lng</span>`. Used for start point, end point, and the waypoints list in the map store.

**`<strong class="editor-theme-bold editor-theme-code">Probe</strong>`**<span style="white-space: pre-wrap;"> — a probe location with an </span>`<span class="editor-theme-code">id</span>`<span style="white-space: pre-wrap;">, </span>`<span class="editor-theme-code">lat</span>`<span style="white-space: pre-wrap;">, </span>`<span class="editor-theme-code">lng</span>`<span style="white-space: pre-wrap;">, and </span>`<span class="editor-theme-code">timestamp</span>`. Used in the probing task to record where soil probes were taken.