Spot the bug in Elysia route typing

from Elysia
Elysia 1.4.30 / Bun 1.3.10 / TypeScript 6 intermediate 4 min 1 issue to find

Why can the Eden client fail to see `/health` even though the route works at runtime?

TypeScript
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()
Open in playground
Report an error