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

reactjs - @internal JavaScript documentation tag inside react code, is this jsdoc, closure, or something else? - Stack Overflow

programmeradmin4浏览0评论

I noticed that React uses the @internal tag for documentation. What program consumes this tag? Is it jsdoc or something else? Google Closure Compiler? I can't find this tag on / or in the Google Closure Compiler documentation. What is it used for?

Here is an example -

/**
 * Warn for mutations.
 *
 * @internal
 * @param {object} object
 * @param {string} key
 */
function defineWarningProperty(object, key) {

.js

I noticed that React uses the @internal tag for documentation. What program consumes this tag? Is it jsdoc or something else? Google Closure Compiler? I can't find this tag on http://usejsdoc/ or in the Google Closure Compiler documentation. What is it used for?

Here is an example -

/**
 * Warn for mutations.
 *
 * @internal
 * @param {object} object
 * @param {string} key
 */
function defineWarningProperty(object, key) {

https://github./facebook/react/blob/master/src/classic/element/ReactElement.js

Share Improve this question asked Feb 18, 2015 at 16:27 Josh UngerJosh Unger 7,2037 gold badges37 silver badges55 bronze badges 1
  • 2 It's not used by Closure-piler: github./google/closure-piler/blob/master/src//google/… – Chad Killingsworth Commented Feb 18, 2015 at 18:11
Add a ment  | 

2 Answers 2

Reset to default 6

The typescript piler can use this tag to exclude stuff from the d.ts definition.

See the --stripInternal option for more information.

From this, it looks like the documentation is manual.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论