2

如何编写 jsdocbindings.input以便在 PhpStorm 中接收类型提示?我尝试了以下 jsdoc,我通常用它来注释我的变量,但它不起作用。

angular.component('Card', {
            controller : [
                CardController
            ],
            bindings   : {
                /** @type {MyType} */
                /** @param {MyType} input */
                input: '<'
            }
        });

我知道在控制器功能中我可以重新分配变量,但它闻起来:

/** @type {MyType} */
this.annotatedInput = this.input
4

1 回答 1

0

这有时有效 /** @type {MyType} */。我想不出为什么只是有时

于 2016-05-06T10:42:04.207 回答