Inference Issue with `E` in `Schema.parse` within `Effect.flatMap`
Can anyone spot why here the
E from Schema.parse in the Effect.flatMap is inferred as unknown?ESchema.parseEffect.flatMapconst payload = yield* $(
Effect.tryPromise(() => request.formData()),
Effect.map((formData) => Object.fromEntries(formData.entries())),
Effect.flatMap(
Schema.parse(
Schema.struct({
// ... snip ...
})
)
),
//---------------v Inferred as `unknown` but I expect to be `PR.ParseError`
Effect.tapError((error) => Effect.log(TreeFormatter.formatErrors(error))),
// ... snip ...
);