I'm developing in Atom with atom-typescript a small test app using Angular2. My initial set up for angular2.d.ts used alpha.28 and router.d.ts used alpha.31. I have updated my index.html to alpha.46
<script src="https://code.angularjs.org/2.0.0-alpha.46/angular2.dev.js"></script>
<script src="https://code.angularjs.org/2.0.0-alpha.46/router.dev.js"></script>
Now when I import things like ROUTE_PROVIDERS, atom-typescript gives me a not found error. I also get router.d.ts cannot find name 'Opaque Token'.
I think I need d.ts files that match alpha.46. After a couple hours of searching and trying things, I can't make this happen. I tried npm install angular2 with the command line cursor on typings/angular2 and I got an error log with 12,031 lines in it, but no new d.ts files. Among many things, I have also tried Chrome's empty cache and hard reload.
How can I get d.ts files that match the angular2 version? Is it possible to automate the update so it always matches the angular2 version in index.html?
If its helpful, here is my tsconfig.json file
{
"compilerOptions": {
"charset": " UTF-8",
"declaration": false,
"diagnostics": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"listFiles": true,
"module": "commonjs",
"noImplicitAny": false,
"noLib": false,
"outDir": "dist/js/cjs",
"rootDir": "src",
"removeComments": true,
"sourceMap": true,
"target": "es5",
"version": true
},
"filesGlob": [
"./**/*.ts",
"!node_modules/**"
],
"exclude": [
"node_modules"
],
"files": [
"./app.ts",
"./src/components/navigation/home.ts",
"./src/components/navigation/postApartment4Rent.ts",
"./typings/angular2/angular2.d.ts",
"./typings/angular2/router.d.ts",
"./typings/es6-promise/es6-promise.d.ts",
"./typings/rx/rx-lite.d.ts",
"./typings/rx/rx.d.ts",
"./typings/tsd.d.ts"
],
"atom": {
"rewriteTsconfig": true
},
"buildOnSave": true,
"compileOnSave ": true
}