Open joulev opened 1 month ago
@SaltyAom facing the exact same issue. However, I'm using a router and Ig et a different TS error.
export const classRouter = new Elysia({ prefix: '/class' })
.get('/', () => 'hello schools')
.get('/:userId', async ({ params: { userId } }) => {
.....
Is this still open/not working?
What version of Elysia is running?
1.1.12
What platform is your computer?
Darwin 23.6.0 arm64 arm
What steps can reproduce the bug?
Type check the code below.
What is the expected behavior?
edenClient
should support/:id
byedenClient({ id: "1" })
.What do you see instead?
Both
edenFetch
and the oldedenTreaty
have awesome support for/:id
, but the new treaty doesn't.edenClient
simply doesn't register the route/:id
at all, and since there are no other routes here, the type ofedenClient
is{}
and running({ id: "1" })
on it doesn't work.Additional information
N/A
Have you try removing the
node_modules
andbun.lockb
and try again yet?Yes