Open LvChengbin opened 3 years ago
Visual Studio / TypeScript supports @template
for that:
I don't think you can or should do this. The documentation is not for declaring types, just for describing. In the same way, you wouldn't put the type of a param
in the TSDoc comment.
I want to tell others that a type param should follow some rules for example:
How can I add description like "should extend from
string
" for@typeparam T
?The playground https://microsoft.github.io/tsdoc seems not supports display
@typeparam
information in the output.