{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/11844","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/11844/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/11844/comments","events_url":"https://api.github.com/repos/angular/angular/issues/11844/events","html_url":"https://github.com/angular/angular/issues/11844","id":178736976,"number":11844,"title":"Allow angular 2 applications to compile in strictNullChecks mode","user":{"login":"abierbaum","id":397889,"avatar_url":"https://avatars.githubusercontent.com/u/397889?v=3","gravatar_id":"","url":"https://api.github.com/users/abierbaum","html_url":"https://github.com/abierbaum","followers_url":"https://api.github.com/users/abierbaum/followers","following_url":"https://api.github.com/users/abierbaum/following{/other_user}","gists_url":"https://api.github.com/users/abierbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/abierbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abierbaum/subscriptions","organizations_url":"https://api.github.com/users/abierbaum/orgs","repos_url":"https://api.github.com/users/abierbaum/repos","events_url":"https://api.github.com/users/abierbaum/events{/privacy}","received_events_url":"https://api.github.com/users/abierbaum/received_events","type":"User","site_admin":false},"labels":[{"id":250379150,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20packaging","name":"comp: packaging","color":"c7def8","default":false},{"id":221038051,"url":"https://api.github.com/repos/angular/angular/labels/flag:%20breaking%20change","name":"flag: breaking change","color":"d93f0b","default":false},{"id":375497160,"url":"https://api.github.com/repos/angular/angular/labels/freq2:%20medium","name":"freq2: medium","color":"fbca04","default":false},{"id":375498203,"url":"https://api.github.com/repos/angular/angular/labels/severity3:%20broken","name":"severity3: broken","color":"0052cc","default":false},{"id":130606845,"url":"https://api.github.com/repos/angular/angular/labels/type:%20feature","name":"type: feature","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-09-22T22:28:30Z","updated_at":"2017-01-07T00:03:30Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\n\n```\n[X] bug report => search github for a similar issue or PR before submitting\n```\n\n**Current behavior** \n\nWhen trying to compile an ng2 application with typescript 2.0 strictNullChecks turned on the compiler runs into errors.\n\n**Expected behavior**\n\nExpect that ng2 would support use with strictNullChecks.\n\n**Reproduction of the problem**\n\nReproduced by taking the quick start application and setting the strictNullChecks option true in tsconfig.json.  (see: https://github.com/abierbaum/quickstart)\n\nWhen doing this and running `npm run tsc` the following error is shown:\n\n```\n> angular-quickstart@1.0.0 tsc /home/allenb/Source/quickstart\n> tsc\n\nnode_modules/@angular/core/src/util/decorators.d.ts(11,5): error TS2411: Property 'extends' of type 'Type<any> | undefined' is not assignable to string index type 'Function | any[] | Type<any>'.\nnode_modules/@angular/platform-browser/src/dom/dom_renderer.d.ts(25,22): error TS2420: Class 'DomRenderer' incorrectly implements interface 'Renderer'.\n  Types of property 'animate' are incompatible.\n    Type '(element: any, startingStyles: AnimationStyles | undefined, keyframes: (AnimationKeyframe | undef...' is not assignable to type '(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number,...'.\n      Type 'AnimationPlayer | undefined' is not assignable to type 'AnimationPlayer'.\n        Type 'undefined' is not assignable to type 'AnimationPlayer'.\n```\n\nOther similar errors occur with larger projects.\n\n**What is the motivation / use case for changing the behavior?**\n\nstrictNullChecks is a recommended best practices for new typescript code and it would be great if we could use this with ng2 applications.\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/271043062","html_url":"https://github.com/angular/angular/issues/11844#issuecomment-271043062","issue_url":"https://api.github.com/repos/angular/angular/issues/11844","id":271043062,"user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"created_at":"2017-01-07T00:03:30Z","updated_at":"2017-01-07T00:03:30Z","body":"> with TypeScript 2.1 support\r\n\r\nit's only for language-service"}}
{"actor":{"display_login":"DzmitryShylovich"}}