mylesmmurphy / prettify-ts

Prettify TypeScript: Better Type Previews
https://marketplace.visualstudio.com/items?itemName=MylesMurphy.prettify-ts
MIT License
263 stars 8 forks source link

Optional properties with question mark display redundantly #17

Closed christophercook closed 6 months ago

christophercook commented 8 months ago

When inspecting a type which has optional properties, the property displays with both a question mark and | undefined

I expect only one or the other, preferably the question mark shorthand.

Screenshot 2024-03-13 at 10 24 19 PM

mylesmmurphy commented 7 months ago

Hey @christophercook! Thanks for mentioning this. I confirmed the default VSCode preview behavior is to only show the question mark, and not the union with undefined. I will get this updated ASAP!

mylesmmurphy commented 6 months ago

This issue has been resolved in the latest release v0.0.18 👍