I am attempting to utilize a tsconfig.json file in order to avoid having /// [ts] Cannot find namespace 'ng'. any Here is my configuration within the tsconfig.json file: In this setup, my tsconfig.json file points to the index.d.ts file which includes references to other necessary typings: Strangely, if I include the reference directly at the top of my module like so: app.controller.js then it properly recognizes 'ng' and provides me with its types. Can anyone offer insight into why this may not be working as expected? Any assistance would be greatly appreciated. Thank you in advance!
{
"compileOnSave": true,
"compilerOptions": {
"noImplicitAny": false,
"target": "es2015",
"allowSyntheticDefaultImports": true
},
"files": [
"./typings/index.d.ts"
]
}
/// <reference path="globals/angular-ui-router/index.d.ts" />
/// <reference path="globals/angular/index.d.ts" />
/// <reference path="globals/jquery/index.d.ts" />
/// <reference path="../../../../typings/index.d.ts" />
...