Shared Utilities

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

Files

  • types.ts - TypeScript interfaces for API requests/responses and data structures

Usage

Import shared types in both frontend and backend:

import { SummarizeRequest, SummarizeResponse } from "/shared/types.ts";

Note: Files in this directory must work in both browser and server environments, so avoid using Deno-specific APIs.