pretty-ts-errors icon indicating copy to clipboard operation
pretty-ts-errors copied to clipboard

TS2322 not rendered correctly

Open moritztim opened this issue 1 year ago • 1 comments
trafficstars

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

moritztim avatar Apr 30 '24 06:04 moritztim

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

kevinramharak avatar May 07 '24 07:05 kevinramharak

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

yoavbls avatar May 18 '24 17:05 yoavbls