Context: TypeScript consumers need the exact response types without installing the full backend.
Requirements:
- Create
backend/src/types/api.ts exporting all request/response interfaces.
- Add
"types": "src/types/api.ts" to backend/package.json exports map.
- Ensure no runtime code is imported by consumers (types/interfaces only).
Acceptance criteria:
import type { Vault } from 'backend/types' resolves in a consumer TypeScript project.
- The types file has no runtime imports.
Context: TypeScript consumers need the exact response types without installing the full backend.
Requirements:
backend/src/types/api.tsexporting all request/response interfaces."types": "src/types/api.ts"tobackend/package.jsonexports map.Acceptance criteria:
import type { Vault } from 'backend/types'resolves in a consumer TypeScript project.