Replies: 1 comment 1 reply
-
|
Now I have released this specific use case of mine as part of pony-cause@1.1.0 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
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
Tdefaulting toanywhen no value was given in this code:Now it gets set to
undefinedwhen no value is provied and mytype-coveragegot closer to 100%.And it properly compiles to:
I will push this new code to my
pony-causemodule very soon, just wanted to write this up first 🥳Beta Was this translation helpful? Give feedback.
All reactions