Skip to content

Add API response type exports from the backend package #868

Description

@Jayy4rl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions