While developing a backend server with SailsJS, I encountered an issue where my model helper services and own services were not showing Intellisense. To address this, I set up typings, installed type definitions for lodash and node globally, and created jsconfig.json and tsconfig.json files.
In an attempt to create definitions for my services, I made an index.d.ts file in a directory within typings/global. The content included function declarations and variable definitions to test the effectiveness of these custom definitions.
Despite adding a reference tag to include the index.d.ts file in typings/index.d.ts, I was unable to see any sensible Intellisense when typing foo. or baz. in my project's Javascript files.
The only way I could achieve some level of Intellisense support was by importing the services in each file using import or require statements. However, this method did not utilize Typescript's definition files, resulting in an undesired outcome.
I questioned why the type definitions for node and lodash worked seamlessly in Javascript while mine did not. It left me wondering how to correctly implement Intellisense for my custom services.