Effect CommunityEC
Effect Community10mo ago
1 reply
Bence (Arzen)

Gratitude for Effect Team's HttpApi Features

No help needed here. (for the very first time haha 😂 ) I just wanted to tell you guys a little story and express my forever gratitude to the
Effect
team and collaborators!

I had an idea of making sort of an entity function that will return me a function which based on an Api description can give me and my team some nice intellisense and type safety, automatic response and payload validation on and for the requests. I've finished with the type definitions and just wrapped up the overall implementation.

In the beginning I was very happy I managed to make this happen but I was not happy with the implementation as TS cannot figure things out properly so I had to use some casting which I'd rather not do. In the end I thought I might need to make the entire implementation into a builder which made me a bit sad but that would have been the best solution.
Fortunately, I remembered
Effect
has something Api related so I looked into it and oh gosh it is beautiful! (I am referring to
HttpApi
, HttpApiBuilder, HttpApiEndpoint, HttpApiGroup) I know it is not stable (for now) but man I don't know who had the idea to make this happen but this is exactly what I needed 🙏 effect
Was this page helpful?