In my bar.ts
file, I have the following declarations:
declare var angular:any;
declare var _:any;
declare var $:any;
declare var moment:any;
declare var ng:any;
declare var require:any;
And in my bootstrap.ts file, I reference the necessary typings:
/// <reference path="./node_modules/@types/angular/index.d.ts" />
/// <reference path="./node_modules/@types/lodash/index.d.ts" />
/// <reference path="bar.ts" />
.............
However, when I try to use the '_' function like this:
this.csSubtitle = _.get<string>(_.find(this.csRadios, { value: this.csRadioValue }), 'label');
I encounter the following error:
error TS2347: Untyped function calls may not accept type argument