Open m1212e opened 3 months ago
When defining an endpoint with optional query parameters like this:
query: t.Optional( t.Object({ role: t.Optional(t.String()), user: t.Optional(t.String()), }), ),
and using the eden treaty to call that endpoint: I must provide an empty object to satisfy typescript
Maybe this can be adjusted?
When defining an endpoint with optional query parameters like this:
and using the eden treaty to call that endpoint:
I must provide an empty object to satisfy typescript
![image](https://github.com/elysiajs/eden/assets/14091540/abb4a1a3-a107-46f1-bc08-134949fd7b12)
Maybe this can be adjusted?