YouthCareerToolkit
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v15View latest version
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 sanitization
PortfolioFormData- Interface for the form dataContentType- Type for the content type optionsGenerateRequest- Interface for the API requestGenerateResponse- Interface for the API response
validatePortfolioForm- Validates the form dataformatGeneratedText- Formats the generated textsanitizeInput- Sanitizes user input to prevent XSS