Open rbuckton opened 4 years ago
@template is supporting by vscode and jsdoc, tsdoc should support it
Any updates? I'd like to see support for {@linkcode}
and {@linkplain}
specifically, since these do have slightly different behavior from {@link}
and are supported in VSCode.
Adding synonyms to TSDoc would make JS-to-TS transitions smoother by preserving familiar JSDoc tags, reducing refactoring effort, and improving compatibility without losing any of TypeScript’s strengths.
JSDoc supports synonyms for many tags, and it would be worthwhile to support those synonyms for code bases that were previously migrated from JavaScript to TypeScript without requiring an investment in time to rewrite doc comment tags to support TSDoc. For example:
@abstract
(synonyms:@virtual
)@augments
(synonyms:@extends
)@default
(synonyms:@defaultvalue
)@description
(synonyms:@desc
)@fires
(synonyms:@emits
)@param
(synonyms:@arg
,@argument
)@returns
(synonyms:@return
)@throws
(synonyms:@exception
)@yields
(synonyms:@yield
){@link}
(synonyms:{@linkcode}
,{@linkplain}
)It would also be valuable for type parameter support (#72), allowing
@template
as a synonym for@typeParam
.