@@ -125,15 +125,15 @@ export class StandardTags {
125125 * separate NPM package.
126126 *
127127 * What gets copied
128- *
129- * The `@inheritDoc` tag does not copy the entire comment body. Only the following
128+ *
129+ * The `@inheritDoc` tag does not copy the entire comment body. Only the following
130130 * components are copied:
131131 * - summary section
132132 * - `@remarks` block
133133 * - `@params` blocks
134134 * - `@typeParam` blocks
135135 * - `@returns` block
136- * Other tags such as `@defaultValue` or `@example` are not copied, and need to be
136+ * Other tags such as `@defaultValue` or `@example` are not copied, and need to be
137137 * explicitly included after the `@inheritDoc` tag.
138138 *
139139 * TODO: The notation for API item references is still being standardized. See this issue:
@@ -328,6 +328,52 @@ export class StandardTags {
328328 standardization : Standardization . Extended
329329 } ) ;
330330
331+ /**
332+ * (Extended)
333+ *
334+ * Used to build a list of references to an API item or other resource that may be related to the
335+ * current item.
336+ *
337+ * @remarks
338+ *
339+ * For example:
340+ *
341+ * ```ts
342+ * /**
343+ * * Parses a string containing a Uniform Resource Locator (URL).
344+ * * @see {@link ParsedUrl } for the returned data structure
345+ * * @see {@link https://tools.ietf.org/html/rfc1738|RFC 1738 }
346+ * * for syntax
347+ * * @see your developer SDK for code samples
348+ * * @param url - the string to be parsed
349+ * * @returns the parsed result
350+ * */
351+ * function parseURL(url: string): ParsedUrl;
352+ * ```
353+ *
354+ * `@see` is a block tag. Each block becomes an item in the list of references. For example, a documentation
355+ * system might render the above blocks as follows:
356+ *
357+ * ```markdown
358+ * `function parseURL(url: string): ParsedUrl;`
359+ *
360+ * Parses a string containing a Uniform Resource Locator (URL).
361+ *
362+ * ## See Also
363+ * - ParsedUrl for the returned data structure
364+ * - RFC 1738 for syntax
365+ * - your developer SDK for code samples
366+ * ```
367+ *
368+ * NOTE: JSDoc attempts to automatically hyperlink the text immediately after `@see`. Because this is ambiguous
369+ * with plain text, TSDoc instead requires an explicit `{@link }` tag to make hyperlinks.
370+ */
371+ public static readonly see : TSDocTagDefinition = StandardTags . _defineTag ( {
372+ tagName : '@see' ,
373+ syntaxKind : TSDocTagSyntaxKind . BlockTag ,
374+ standardization : Standardization . Extended
375+ } ) ;
376+
331377 /**
332378 * (Extended)
333379 *
@@ -420,6 +466,7 @@ export class StandardTags {
420466 StandardTags . remarks ,
421467 StandardTags . returns ,
422468 StandardTags . sealed ,
469+ StandardTags . see ,
423470 StandardTags . throws ,
424471 StandardTags . typeParam ,
425472 StandardTags . virtual
0 commit comments