Creating Simplified Service API Calls in Effect

Anyone know how I can accomplish a similar service API as Effect's default services have, where I can yield* Clock.currentTimeMillis or yield* Console.log("Hello World") and the Clock service get's added, or Console service gets added?

Basically, instead of having to const ConsoleService = yield* Console and then yield* ConsoleService.log(), would like for it to be just one function call like Effect's services have it
Was this page helpful?