WebStormでアロー関数の引数に型を指定して、入力補完を効かせる方法です。
以下のように引数の前に/** type */
を指定すれば入力補完を有効にできます。
[].forEach(/**Number*/num1 => {
return num1 * num1;
});
参考
https://stackoverflow.com/questions/35112415/jsdoc-arrow-function-params
More than 5 years have passed since last update.
WebStormでアロー関数の引数に型を指定して、入力補完を効かせる方法です。
以下のように引数の前に/** type */
を指定すれば入力補完を有効にできます。
[].forEach(/**Number*/num1 => {
return num1 * num1;
});
参考
https://stackoverflow.com/questions/35112415/jsdoc-arrow-function-params
Register as a new user and use Qiita more conveniently