# `shared/types/`

## Purpose

Shared TypeScript types used across platform and modules: API envelopes, pagination, tenant context, common DTOs.

## Legacy source (not moved)

- Types exported inline from `lib/api.ts`, `lib/*-api.ts`
- Component prop types co-located in each file

## Planned contents

- `PaginatedResponse<T>`, `ApiErrorBody`
- `TenantContext`, `SessionUser`
- Shared form/value types

## Rules

- Domain entity types (Invoice, Appointment, Patient) belong in module packages, not here
- Only cross-cutting types live in `shared/types/`

## Status

📁 Scaffold only — types remain scattered in legacy lib files.
