Javascript 在typedoc中标记/生成方法链接?
我们应该使用什么标记来标记某物是typedoc中的方法。例如,我有以下评论:Javascript 在typedoc中标记/生成方法链接?,javascript,typescript,jsdoc,typedoc,Javascript,Typescript,Jsdoc,Typedoc,我们应该使用什么标记来标记某物是typedoc中的方法。例如,我有以下评论: /** * 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() metho
/**
* 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.
*/
如何告诉typedoc类上的方法是
addValidationContext
。您可以使用JSDoc或说明。typedoc有两种设置链接的方法。对于方法和属性,您应该能够编写[[ClassName.methodName]]
或{@link ClassName.methodName}
,并将其转换为链接
如果查看Renderer类的,可以看到在中渲染的示例