question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RFC: `@see` block tag specifies an item for a "See Also" section

See original GitHub issue

I use the eslint-plugin-tsdoc for linting, and noticed that the JSDoc @see tag is not supported in the list of TSDoc tags.

We use @see tags extensively in one of our projects, so it would be great to add support for it so the TSDoc ESLint plugin doesn’t warn for using that tag.

I’m happy to write a PR. Is all it takes adding this to the list of TSDoc tags?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
octogonzcommented, May 8, 2020

JSDoc also specifies:

You can provide either a symbol’s namepath or free-form text.

This aspect seems problematic. Namepaths are ambiguous with free-form text.

For example, if instead of this:

 * @see *Elements* 
 * by Euclid

…I wrote it as:

 * @see Elements

…then how is the parser supposed to know whether Elements was meant to be an API item reference or a free-form title?

Thus I’d propose that TSDoc omit this aspect and instead require an explicit {@link} for any hyperlinks with @see.

Are you guys okay with that?

2reactions
rbucktoncommented, May 8, 2020

You cannot emulate @seealso properly with DocFX, as how seealso entries are rendered depends on the DocFX template in place since they are unique items in the schema.

Also, @see is supported by the jsdoc package:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC 2654 - A Tagged Index Object for use in the Common ...
Was draft-ietf-find-cip-tagged (find WG) ... The Tagged Index Object This section defines a Tagged Index Object that can be exchanged by Information Servers ......
Read more >
RFC 7991: The "xml2rfc" Version 3 Vocabulary
See Section 5 for a description of how to deal with issues of using "&" and "<" characters ... <blockquote> Specifies that a...
Read more >
7 The global structure of an HTML document - W3C
a declarative header section (delimited by the HEAD element),; a body, which contains the document's actual content. The body may be implemented by...
Read more >
PMC Tagging Guidelines - NCBI - NIH
See also Author/Affiliation Relationship for examples. See Alternate Versions of a Single Object for tagging alternate versions of affiliations. 1.2. Tag ...
Read more >
YAML Ain't Markup Language (YAML™) revision 1.2.2
When data is easy to view and understand, programming becomes a ... in addition to its kind and content, a tag specifying its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found