yoavbls / pretty-ts-errors

🔵 Make TypeScript errors prettier and human-readable in VSCode 🎀
https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors
MIT License
13.29k stars 89 forks source link

Incorrect error formatting #50

Closed Semigradsky closed 1 year ago

Semigradsky commented 1 year ago

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; }'.

yoavbls commented 1 year ago

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