Back to journals
Loading article…
Journals
Short notes and snippets — too brief for a full blog post, worth writing down.
Back to journals
Back to journals
TIL
Elysia + Eden Treaty means your frontend knows about new endpoints before you ship broken calls.
Date published
Source
Gist## End-to-end types without codegen
```ts
const { data, error } = await treatyClient.users.get();
if (error) throw error;
return data;
```
When the Elysia route changes shape, TypeScript fails in the client — not in production.