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
It should also become a function in my opinion. Please let me know if i missed something or you need a reproduction repo!
Workaround / Repro:
exportconstapi=newElysia({prefix: '/api'})// Never called just used for types.get('/files/:path',({ params })=>{returndoStuff(params.path);}).get('/files/*',({ params })=>{returndoStuff(params['*']);});exporttypeApi=typeofapi;asyncfunctionclientCode(){awaitapiClient.api.files({path: '/test/path'}).get();}
The text was updated successfully, but these errors were encountered:
Problem
It currently is not possible to provide wildcard parameters with eden treaty.
With dynamic params the client type is this:
With a wildcard it becomes this:
It should also become a function in my opinion. Please let me know if i missed something or you need a reproduction repo!
Workaround / Repro:
The text was updated successfully, but these errors were encountered: