Making a Context Generic in Effect Typescript

I have a Context created like that:

class ConfigContext extends Ctx.Tag('ConfigContext')<
  ConfigContext, 
  {
    parse: () => unknown 
  }>(){}:

But the parse function should be depended on a Generic Parameter. Expressed as a simple TS-Type it should follow that:

type ConfigContext<C> = {
  parse: () => C
}

But in Order to create a context, the question is: Is there any recommend way to make the context generic?
Was this page helpful?