Types and constants used by both the React UI and the Express API. Keeps the client/server boundary explicit without a separate npm package.
| Path | Contents |
|---|---|
api/vulnerability.ts |
Vulnerability, ScanResponse, Severity, DataSource, … |
constants/severityOrder.ts |
SEVERITY_ORDER — sort/display order for severity levels |
| Consumer | Alias / path |
|---|---|
| Frontend | @shared/api/vulnerability, @shared/constants/severityOrder |
| Backend | ../shared/… (compiled into dist-server/shared/) |
| Tests | Relative import from tests/server/ |
UI-only types (TabId, AppSettings, …) stay in src/types/.
Server-only request types stay in server/types/.