Files
vibe-kanban/shared
Louis Knight-Webb 563994934d Init
2025-06-14 15:14:08 -04:00
..
2025-06-14 15:14:08 -04:00
2025-06-14 15:14:08 -04:00

Shared Types

This directory contains shared types and schemas that are used by both the frontend and backend.

Usage

Frontend

import { ApiResponse } from '../shared/types'

Backend

Consider using ts-rs to generate TypeScript types from Rust structs:

use ts_rs::TS;

#[derive(Serialize, TS)]
#[ts(export)]
pub struct ApiResponse<T> {
    pub success: bool,
    pub data: Option<T>,
    pub message: Option<String>,
}

This will generate TypeScript definitions that stay in sync with your Rust types.