Jsdoc doesn’t work on class parameters

ive uses Php storm for some time and I love it in general, however I’m experiencing an issue with jsdoc comments.

with php it works fine on everything, I just type /** and press enter to phpdoc my methods , functions and parameters, however jsdoc doesn’t like working properly on parameters.

 

say I’m coding something in typescript with angular , I can jsdoc my methods without a problem in exactly the same way I do php describes above, but if I try the same in a parameter in my typescript class the jsdoc doesn’t get generated. The settings in php storm look ok to me.

 

so what I mean is this, a simple typescript class below, I can type /** and press enter on the c method and the block will generate, if I do the same on the a parameter it won’t generafe the comment block.

class Test{

    public a: string = ‘b’;

 

    public c() : string {

        return ‘test’;

    }

 

}

 

 

0

请先登录再写评论。