🔎 Search Terms
I've stumbled across a situation where a return type is unexpectedly typed as any while using the Effect library.
I tried to make my reproduction as minimal as possible, but if I change anything else at this stage, the types seem to inexplicably change (e.g. commenting out one of the fields in the Schema)
🕗 Version & Regression Information
- This changed between versions 5.8.3 and 5.9-beta
⏯ Playground Link
No response
💻 Code
https://github.com/johtso/typescript-issue
🙁 Actual behavior
Return value of getInvoices typed as Effect.Effect<any>
🙂 Expected behavior
return value should be typed as
Effect.Effect<{
readonly page: number;
readonly foo: string;
}, ParseError, never>
Additional information about the issue
No response