Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect error formatting #50

Closed
Semigradsky opened this issue Apr 26, 2023 · 1 comment
Closed

Incorrect error formatting #50

Semigradsky opened this issue Apr 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Semigradsky
Copy link

Original error

Argument of type '{ filters: Filters; } & T' is not assignable to parameter of type 'T & F'.
  Type '{ filters: Filters; } & T' is not assignable to type 'F'.
    '{ filters: Filters; } & T' is assignable to the constraint of type 'F', but 'F' could be instantiated with a different subtype of constraint '{ filters: Filters; }'.ts(2345)

Screenshots
image

Describe the bug
The problem in formatting type 'F', but 'F' could and constraint '{ filters: Filters; }'.

@Semigradsky Semigradsky added the bug Something isn't working label Apr 26, 2023
artyom-ar added a commit to artyom-ar/pretty-ts-errors that referenced this issue Apr 29, 2023
yoavbls added a commit that referenced this issue Apr 29, 2023
fix issue #50, add subtype of constrait
@yoavbls
Copy link
Owner

yoavbls commented Apr 29, 2023

It was fixed in v0.4.0, take a look 🙂

@yoavbls yoavbls closed this as completed Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants