shared-api-types
Installation
SKILL.md
Shared API Types & Schemas
@eridu/api-types is the Single Source of Truth for API contracts between backend, frontend, and external services.
See references/api-types-details.md for extended code examples, Prisma-to-DTO transforms, and finance contracts.
Directory Structure
Organized by domain: src/shows/, src/users/, src/task-management/, src/pagination/.
Import Strategy (Subpath Exports)
// ✅ Correct
import { TaskTemplate } from '@eridu/api-types/task-management';
// ❌ Avoid barrel root
import { TaskTemplate } from '@eridu/api-types';