mylesmmurphy / prettify-ts

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

Optional properties with question mark display redundantly #17

Closed christophercook closed 1 month ago

christophercook commented 3 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 2 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 1 month ago

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