Shared

This directory contains shared code and types used by both the frontend and backend.

Files

  • types.ts - TypeScript interfaces and types for the application

Types

  • Property - Represents a property listing
  • PropertyImage - Represents an image associated with a property
  • PropertyWithImages - Property with its associated images
  • PropertyCategory - Enum of property categories (sale, rent, lease, land, commercial)
  • ApiResponse - Standard API response format
  • PropertyFormData - Form data for creating/updating properties
  • LoginFormData - Form data for admin login