Darren Hill
Darren Hill

Reputation: 27

Indicate that a function is used externally in Webstorm

I feel I'm overlooking something here. I've created a nice Typescript file, but WebStorm complains that all my functions are 'Unused'. Well, they are .. just not locally to the file itself. Is there some JSDoc or other commented code I can put in to tell WebStorm that I KNOW this function IS used .. just used externally?

Upvotes: 1

Views: 85

Answers (1)

lena
lena

Reputation: 93728

Yes - //noinspection JSUnusedGlobalSymbols; hit Alt+Enter on your function that is reported to be unused, then hit Right and choose 'Suppress for statement'

Upvotes: 3

Related Questions