I use latest IntelliJ IDEA (14.0.3) with (embedded) TypeScript/JS Support.
I Downloaded this angular-route.d.ts file to put to my project.
And the IDE shows me the highlighting, that that syntax is wrong.
I use Using tsc v1.4.1 ts-compiler for my project. (not sure if IDE is aware of it though).
Q: How to know what v of typescript compiler IDE uses? And how to make that ts-file to be valid?
I've read this official doc, but must be I missed something. As I understand the IDE should use that compiler I've installed as nmp package.
My project consists of package.json, GruntFile.js etc.. files - nodejs-like project.
In overal the stuff from ts-files are resolved.. Like I can see and navigate to that file
function config($routeProvider: IRouteProvider): void {
$routeProvider
.when('/area11/stuff/newstuff', {
template: '<div>New Stuff</div>',
controller: (): void => {},
controllerAs: 'vm'
});
}
So I can see/navigate to 'IRouteProvider' (which is defined in that highlighting file) from the IDE. This the project itself is set.. Just that little 'disappointment' with highlighting.
Aucun commentaire:
Enregistrer un commentaire