类似ide如何帮助描述当我记录一个像这样的功能。是否可以在tsx文件中使用自定义属性文档?
/**
* My Test fn
* @param a - some description here
*/
function Test(a) {}
我想IDE显示在以下情形的描述,但我不能把它说除“(JSX属性)测试:布尔”什么
interface TestProps {
/** Some comment here */
test: boolean;
}
class TestComp extends React.Component<TestProps, any> {
render() {
return <span>{this.props.test}</span>
}
}
const test = (props) => (
<div><TestComp test={true} /></div>
)
有什么办法在帮助测试属性时让它显示说明?
通知底部图像在这里有 - 一些描述和顶部不会
VSCode 1.14尚未正式发布,但您可以在内部人员的预览版本中预览它:https://code.visualstudio.com/insiders我们应该在下周发布1.14 –