React 代码中的 @internal JavaScript 文档标签,是 jsdoc、闭包还是其他什么?

Jos*_*ger 5 javascript google-closure google-closure-compiler jsdoc reactjs

我注意到 React 使用该@internal标签作为文档。什么程序消耗这个标签?是 jsdoc 还是别的什么?谷歌关闭编译器?我在http://usejsdoc.org/或 Google Closure Compiler 文档中找不到这个标签。它是干什么用的?

这是一个例子——

/**
 * Warn for mutations.
 *
 * @internal
 * @param {object} object
 * @param {string} key
 */
function defineWarningProperty(object, key) {
Run Code Online (Sandbox Code Playgroud)

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

小智 6

Typescript 编译器可以使用此标签从 d.ts 定义中排除某些内容。

有关详细信息,请参阅--stripInternal 选项。


Dhi*_*raj 0

由此看来文档是手动的。