Skip to content

5.9-beta regression, Effect-TS's Effect result typed as any #62090

@johtso

Description

@johtso

🔎 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions