Handling Services with Constructor Information in Effect TypeScript

What's the proper way of handling services that require constructor information? Say that I have
type IDEContext = { foo: string } 

declare const onIDEActivation: (ctx:  IDEStuff): void


I need that context as a dependency of multiple services:

export class IDEContext extends Context.Tag // etc


And right now I'm using it as:
declare const createIDEContext = (ctx: IDEStuff): Layer<IDEContext>


Works fine but I was wondering whether there were better patterns, especially if involving Effect.Service
Was this page helpful?