Public
Like
QUEEN
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.
This directory contains TypeScript types and data that are shared between the frontend and backend.
types.ts- TypeScript interfaces and the pastry menu data
PastryItem- Individual pastry with id, name, description, price, image, and categoryCartItem- Pastry item with quantityCustomerInfo- Customer details for ordersOrder- Complete order with customer info, items, total, and status
PASTRY_MENU- Array of all available pastries with details
The system supports these pastry categories:
croissants- Butter croissants, pain au chocolat, almond croissantscakes- Cake slices and dessertscookies- Cookie packsbreads- Artisan breads and baguettesspecialties- Γclairs, macarons, danishes
Both frontend and backend import these types to ensure consistency across the application. The menu data is used to populate the customer interface and validate orders.