This directory contains shared code that is used by both the frontend and backend.
types.ts
- TypeScript interfaces and types for the applicationutils.ts
- Utility functions for validation, formatting, and sanitizationPortfolioFormData
- Interface for the form dataContentType
- Type for the content type optionsGenerateRequest
- Interface for the API requestGenerateResponse
- Interface for the API responsevalidatePortfolioForm
- Validates the form dataformatGeneratedText
- Formats the generated textsanitizeInput
- Sanitizes user input to prevent XSS