import { treaty } from '@elysia/eden' import { Elysia } from 'elysia' const app = new Elysia() app.get('/health', () => ({ ok: true })) type App = typeof app const api = treaty<App>('http://localhost:3000') await api.health.get()