Display default values for property types. #61045
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
π Search Terms
π Version & Regression Information
Unsure if it's always been this way.
β― Playground Link
https://www.typescriptlang.org/play/?filetype=js#code/LAKFHoCpNACTYAEAuBPADgUwCaYGawDeA9gEYBWmAxsgL6wAKATsegM5wKLotZNpEA5GwC2g2AB9YgkdnFTBAGwDmg+gG1mrNgDo2ASwBemALwy5AXVgAhAK7JkxAHawDxnZyQ9WmfqiJsyEz6TsoaWuw6igCGpJiKVnYOzrAxcYoeIPDgoBDQnohMmMi2TE5sRBFstAW4eNG2ishErkaYAFzSsoIANKmx8Z22TnUhOLA1WZA5IHjDNPopysVVABQAlERwsDtFJWVEk5OgisUtbpiwJl1yfWnxE1ewy8hr66BAA
π» Code
π Actual behavior
Tooltip when hovering
size
destructured property:π Expected behavior
Tooltip when hovering
size
destructured property:Additional information about the issue
Potentially relates to #24746
When defining object property types using JSDoc default value notation, such as
@property {'sm' | 'md' | 'lg'} [Props.size='md']
, I'd like to see tooltip details about the default value. I assume the only way to denote default values with@property
is to use[key=value]
notation since@default
cannot be inlined.The text was updated successfully, but these errors were encountered: