Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 832 Bytes

File metadata and controls

20 lines (14 loc) · 832 Bytes

Shared contracts (shared/)

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

Import paths

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/.