找出 Elysia 路由类型里的 bug

来自 Elysia
Elysia 1.4.30 / Bun 1.3.10 / TypeScript 6 进阶 4分钟 找出 1处问题

为什么 `/health` 在运行时可用,Eden 客户端却可能看不到它?

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()
在试验场中打开
报告错误