Effect CommunityEC
Effect Communityβ€’2y agoβ€’
228 replies
Jonathan Clem

Sugestion about common pattern for exposing a service's functions in TypeScript

It's really often that I wish it was a common pattern to expose a service's common functions on the tag object itself:

yield* Terminal.display('foo')


Rather than

yield* Terminal.pipe(Effect.flatMap(t => t.display('foo')))
Was this page helpful?