Shared Types and Utilities

This directory contains TypeScript types and utilities shared between the frontend and backend.

Files

  • types.ts - TypeScript interfaces for Story, Chapter, and API request/response types

Usage

Import types in both frontend and backend:

import { Story, Chapter, StoryRequest, StoryResponse } from "/shared/types.ts";