最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Tagginggenerating a method link in typedoc? - Stack Overflow

programmeradmin0浏览0评论

What markup should we use to tag that something is a method in typedoc. For example I have the following ment:

  /**
   * The index for all of the ValidationContext instances.
   * Not meant to be accessed directly.  Only decorators should
   * be modifying the state of the cache by using the addValidationContext() method.
   */

How do I tell typedoc that addValidationContext is a method on the class?

What markup should we use to tag that something is a method in typedoc. For example I have the following ment:

  /**
   * The index for all of the ValidationContext instances.
   * Not meant to be accessed directly.  Only decorators should
   * be modifying the state of the cache by using the addValidationContext() method.
   */

How do I tell typedoc that addValidationContext is a method on the class?

Share Improve this question edited Jun 28, 2018 at 17:44 Ole asked Jun 28, 2018 at 17:09 OleOle 47.5k70 gold badges238 silver badges445 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

TypeDoc has two methods for setting links. For methods and properties, you should be able to write [[ClassName.methodName]] or {@link ClassName.methodName} and have that converted to a link.

If you look at the doc ment for the Renderer class you can see an example which is rendered in the api documentation site.

You may use JSDoc {@link} or @see instructions.

发布评论

评论列表(0)

  1. 暂无评论