在Webstorm中表示一个函数被外部​​使用

Indicate that a function is used externally in Webstorm

我觉得我在这里忽略了一些东西。我创建了一个不错的 Typescript 文件,但 WebStorm 抱怨我所有的函数都是 'Unused'。好吧,它们 .. 只是不在文件本身的本地。是否有一些 JSDoc 或其他注释代码我可以告诉 WebStorm 我知道这个函数被使用了..只是在外部使用?

是 - //noinspection JSUnusedGlobalSymbols;在报告未使用的函数上点击 Alt+Enter,然后点击 Right 并选择“Suppress for statement