【发布时间】:2017-12-10 22:57:03
【问题描述】:
类似于当我记录这样的函数时 ide 如何帮助描述。
/**
* 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>
)
在帮助测试属性时,有什么方法可以让它显示描述?
注意底部图片有 - 一些描述和顶部没有
【问题讨论】:
标签: typescript ecmascript-6 visual-studio-code tsx