Open
Description
What version of Elysia is running?
1.3.0
What platform is your computer?
Darwin 24.4.0 arm64 arm
What steps can reproduce the bug?
After upgrading to elysia@1.3.0
, the following Eden code:
import { treaty } from '@elysiajs/eden';
import { Elysia } from 'elysia';
// Start Elysia app
const app = new Elysia().get('/session', () => true)
// Enable Eden
const api = treaty(app);
// Call end point and get its `headers` object
const {headers} = await api.session.get();
// Inspect the `headers` object via `.get()`
console.log(headers.get('set-cookie'));
Fails TypeScript checks with:
error TS2339: Property 'get' does not exist on type 'HeadersInit'.
Property 'get' does not exist on type '[string, string][]'.
The code itself actually still works fine. It's just the TypeScript type that seems to be failing.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Have you try removing the node_modules
and bun.lockb
and try again yet?
No response