Effect CommunityEC
Effect Community9mo ago
5 replies
Dave Meehan

Passing a Service Instance as a Function Argument in Effect TypeScript

How can I pass a service instance as a function argument?

function myFunc(instance: ???) {/*...*/}

const service = yield* MyService
myFunc(service)


In the case of @effect-aws services, they are types as <Client>Service$, but the interface ending in
$
is not exported.
Was this page helpful?