Issue with ParseError Propagation in Effect Typescript Library

I have an ParseError propagating problem
Lets assume I have the following code:
const validString = Schema.String.pipe(
  Schema.filter((s) => s.startsWith('a'))
)

const coolStruct = Schema.Struct(
{
   member: validString
}
)

const program = Effect.gen(function * () {
  return coolStruct.make(
    {
      member: "beta"
    }
  )
});

Then the type of program is Effect.Effect<typeof coolStruct.Encoded, never, never>, even though if rightfully throws with a ParseError

Of course, I could just define the type as Effect.Effect<typeof coolStruct.Encoded, ParseError, never, but somehow it still never reaches the catchBlock, even If I pipe into a .catchTag("ParseError", ...)

Is this an error on my coding side? Shouldn't make be an Effect, which propagates a ParseError into the Error Channel? (I even have the feeling, that it was like this a while ago)
Was this page helpful?