Using Effect type with service arguments

Writing a service that takes arguments? Is there a way to still have the type as Effect<....> or will it always be (args) => Effect<...>

basically I want to pass some arguments to the function that will run, but then I need to pass the arguments to officially create the Layer.

If I do that then I can't seem to pass something like MyLayer.Live to the provide function since the arguments are coming from another Layer thats consuming this
Was this page helpful?