A package with all things shared between frontend and backend.
- DTOs - Data Transfer Objects for API communication
- Types - Shared TypeScript interfaces and types
- Enums - Common enumerations used across apps
- Utilities - Shared helper functions and constants
- Type-safe API contracts between frontend and backend
- Single source of truth for shared data structures
- Reduced code duplication across applications
- Better maintainability when updating shared interfaces
Import shared types and DTOs in your frontend and backend applications:
import {Dto, type Type} from '@next-nest-turbo-auth-boilerplate/shared';