It's an easy fix, but adds unnecessary source code to your project.Ģ) Disable JavaScript source files by excluding them There is less likely to be conflict with any already scanned JS source files that also declare angular. This will declare the variable myAngular using the TypeScript definition. This is true for most JS variables in Php/WebStorm not just this angular variable.ġ) Force type declaration with JsDoc to TypeScript /** If the tooltip says there are multiple definitions of the identifier, then it can not do autocomplete correctly. It should show it highlighted to be clickable, and a tooltip showing where it is declared. If you hold down ctrl and mouse over the world angular. This doesn't have anything to do with your actually JavaScript project, but where PhpStorm looks for declarations. It's important to verify that only 1 declaration for angular is being discovered by PhpStorm. The angular variable is a global one and when you have to many declarations of the same global variable PhpStorm/WebStorm can not handle auto-completion.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |