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.44k stars 89 forks source link

TS2322 not rendered correctly #105

Closed moritztim closed 4 months ago

moritztim commented 5 months ago

Describe the bug ts(2322) is rendererd partly wrong at the end. These are the relevant properties

#overlaps!: OverlapConfigurationParameters[];
private async download(file: File<string | MpcdiZip>): Promise<void>

Expected behavior each property listed gets its own bullet point

Original error

Type 'Ref<{ name: string; readonly type: "json"; mm: <T extends Convertible = Convertible>(px: T) => T; px: <T extends Convertible = Convertible>(mm: T) => T; ... 18 more ...; toJson: () => string; }>' is not assignable to type 'Ref<MpcdiConfiguration>'.
  Type '{ name: string; readonly type: "json"; mm: <T extends Convertible = Convertible>(px: T) => T; px: <T extends Convertible = Convertible>(mm: T) => T; ... 18 more ...; toJson: () => string; }' is missing the following properties from type 'MpcdiConfiguration': ratio, #overlaps, download

Screenshots Screenshot from 2024-04-30 08-16-06

is missing the following properties from type MpcdiConfiguration:

  • ratio,

    overlaps, download

kevinramharak commented 5 months ago

Issue is the private property prefix character #, I submitted a PR #106

yoavbls commented 4 months ago

Thank you, the fix will be there in the next version