1
JsDocのドキュメントに従ってクラス、プロパティ、メソッドを定義しましたが、 "/ somePath"を解析できません:予期しないトークン。私のクラス定義は次のようになります: -エラー: ""を解析できません:予期しないトークン(JSDoc)
/**
* class representing Lab testResults
* @param {object} props: contain all the property
*/
class LabTestResult extends Component {
constructor(props) {
super(props);
this.state = {
loading: true,
}
this.collapseButton = this.collapseButton.bind(this);
}
state = {
open: false,
};
}
なぜこのエラーが発生しますか?これをどうすれば解決できますか?私を助けてください。
'状態は= {開く:偽};'そこES6では有効ではありません。私はjsdocがすべての実験的な機能をサポートするとは思っていません。 –