How do I wrap an existing npm package into an Effect.Service? The idea is I have typed typescript npm package that connects to some API services. I want to wrap it in effect such that the functions where I have to await outsideService.users.createAccount are dealt within effect.
Looking for honestly sample code I can reference so I can get a feel for how to construct this.
Also I'm not totally aware of what is the difference between the methods: succeed, sync, effect, scoped you can provide in the service