简体   繁体   中英

WebStorm and jsdoc3, defining allowed parameters doesn't work?

Based on the documentation , the JSDoc implementation in WebStorm seems to be very limited. Is there anyway to extend it? I can't find any plugins.

Specifically, I would like "allowed parameters" to work ( as implemented 2014-04-11 )

在此处输入图片说明

they do work - if the argument doesn't match the value specified in @param annotation, WebStorm shows type mismatch warning:

在此处输入图片说明

But parameter hint shows expected parameter type, not value

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM