This directory contains code shared between frontend (browser) and backend (Deno).
types.ts - TypeScript interfaces and types
utils.ts - Utility functions
// ✅ Good - works everywhere
export function formatDate(date: string): string {
return new Date(date).toLocaleDateString();
}
// ❌ Bad - Deno-specific
export function readConfig() {
return Deno.env.get('CONFIG'); // Won't work in browser!
}