Unresolved function or method in Webstrom Node Coding Assistance
I enabled node coding assistance under Settings -> Languages & Frameworks -> Node.js, yet it is not able to resolve EventEmitter functions like 'on' when extended to a child and also functions like fork and variables like isMaster under nodejs cluster module.
Any known bug or resolution tips ?
Please sign in to leave a comment.
Unfortunately due to a way cluster is defined in @types/node its inferred type is any, so no completion/resolving is possible:(
As a workaround, I'd suggest specifying the type explicitly with JSDoc: