You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
After testing various things with the RC version, it didn't work correctly. Below is the code I ran
describe("eden test",()=>{it("derive test",async()=>{constapp=newElysia().derive(()=>({user: "name"})).get("/user",()=>"user")treaty(app).get("/user",()=>"user")})it("resolve test",async()=>{constapp=newElysia().resolve(()=>({user: "name"})).get("/user",()=>"user")treaty(app).user.get("/user",()=>"user")})it("prefix test",async()=>{constapp=newElysia({prefix: undefined}).get("/user",()=>"user")treaty(app).user.user.get()//<-- this is wrong (This is how it's autocompleted.)})})
capture
version
elysia: 1.0.0-rc.15
@elysiajs/eden: 1.0.0-rc.4
The text was updated successfully, but these errors were encountered:
When we use { as: 'global' }, it will work properly.
describe("eden test",()=>{it("derive local test",async()=>{constapp=newElysia().derive(()=>({user: "name"})).get("/user",({ user })=>user);treaty(app).user.get();// <- type error});it("derive global test",async()=>{constapp=newElysia().derive({as: "global"},()=>({user: "name"})).get("/user",({ user })=>user);treaty(app).user.get();// <- ok});});
Hi
After testing various things with the RC version, it didn't work correctly. Below is the code I ran
capture
version
elysia: 1.0.0-rc.15
@elysiajs/eden: 1.0.0-rc.4
The text was updated successfully, but these errors were encountered: