Creating an OpenAPI Client with Effect HttpClient

Has anyone tried to make something like openapi-fetch ( https://openapi-ts.dev/openapi-fetch/ ), with effect HttpClient ?
I like the idea of a makeClient function that takes a type argument of paths generated from OpenApi schema via openapi-typescript (https://openapi-ts.dev/introduction) generator and returns a HttpClient with autocomplete of all possible urls.
const typedClient = yield* createClient<paths>({ baseUrl: 'http://example.com/api' });
Was this page helpful?