# Shared Types This directory contains shared types and schemas that are used by both the frontend and backend. ## Usage ### Frontend ```typescript import { ApiResponse } from '../shared/types' ``` ### Backend Consider using `ts-rs` to generate TypeScript types from Rust structs: ```rust use ts_rs::TS; #[derive(Serialize, TS)] #[ts(export)] pub struct ApiResponse { pub success: bool, pub data: Option, pub message: Option, } ``` This will generate TypeScript definitions that stay in sync with your Rust types.