Update tsconfig.json

Update tsconfig.json

Now that Angular 2 and its dependencies are installed, we need to enable TypeScript’s experimental support for decorators and include the es6-shim typings. In the future decorators and ES6 will be the default and these settings will not be needed. Add "experimentalDecorators": true, "emitDecoratorMetadata": true to the "compilerOptions" section, and add "../typings/index.d.ts" to the "files" section. Finally, we need to add a new entry in "files" for another file, "./model.ts", that we will create. The tsconfig should now look like this:

{
  "compilerOptions": {
    "noImplicitAny": true,
    "noEmitOnError": true,
    "sourceMap": true,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "target": "es5"
  },
  "files": [
    "./app.ts",
    "./model.ts",
    "./main.ts",
    "../typings/index.d.ts"
  ],
  "compileOnSave": true
}
doc_TypeScript
2016-10-04 19:25:42
Comments
Leave a Comment

Please login to continue.