Replies: 1 comment 1 reply
-
Now I have released this specific use case of mine as part of [email protected] |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TypeScript 4.5, which currently has a release candidate, includes an exciting new feature for JSDoc users:
Defaults for template tags (microsoft/TypeScript#45483):
@template [T=string]
I found this through microsoft/TypeScript#29401 when looking for a way to void
T
defaulting toany
when no value was given in this code:Now it gets set to
undefined
when no value is provied and mytype-coverage
got closer to 100%.And it properly compiles to:
I will push this new code to my
pony-cause
module very soon, just wanted to write this up first 🥳Beta Was this translation helpful? Give feedback.
All reactions