{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/18977","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/18977/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/18977/comments","events_url":"https://api.github.com/repos/angular/angular/issues/18977/events","html_url":"https://github.com/angular/angular/issues/18977","id":254405569,"number":18977,"title":"How to check the data type of component properties?","user":{"login":"Leonhelm","id":20487810,"avatar_url":"https://avatars2.githubusercontent.com/u/20487810?v=4","gravatar_id":"","url":"https://api.github.com/users/Leonhelm","html_url":"https://github.com/Leonhelm","followers_url":"https://api.github.com/users/Leonhelm/followers","following_url":"https://api.github.com/users/Leonhelm/following{/other_user}","gists_url":"https://api.github.com/users/Leonhelm/gists{/gist_id}","starred_url":"https://api.github.com/users/Leonhelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leonhelm/subscriptions","organizations_url":"https://api.github.com/users/Leonhelm/orgs","repos_url":"https://api.github.com/users/Leonhelm/repos","events_url":"https://api.github.com/users/Leonhelm/events{/privacy}","received_events_url":"https://api.github.com/users/Leonhelm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T17:09:17Z","updated_at":"2017-08-31T17:14:24Z","closed_at":null,"author_association":"NONE","body":"\"@angular/core\": \"^4.0.0\"\r\n\"typescript\": \"~2.3.3\"\r\n\r\n`@Component({`\r\n`  selector: 'app-parent',`\r\n`  templateUrl: '<app-child [data]=\"test\"></app-child>'`\r\n`})`\r\n`export class ParentComponent {`\r\n\r\n`  test: number = 123;`\r\n`}`\r\n\r\n`/****/`\r\n\r\n`class Test {`\r\n`  name: string`\r\n`}`\r\n\r\n`@Component({`\r\n`  selector: 'app-child',`\r\n`  templateUrl: '<div></div>',`\r\n`})`\r\n`export class ChildComponent {`\r\n\r\n`  @Input() data: Test;`\r\n`}`\r\n\r\nWhy does ChildComponent not swear that the data property does not belong to the Test data type?\r\nHow can typescript or angular be able to check the incoming properties of a component?"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/326362714","html_url":"https://github.com/angular/angular/issues/18977#issuecomment-326362714","issue_url":"https://api.github.com/repos/angular/angular/issues/18977","id":326362714,"user":{"login":"ericmartinezr","id":13039652,"avatar_url":"https://avatars1.githubusercontent.com/u/13039652?v=4","gravatar_id":"","url":"https://api.github.com/users/ericmartinezr","html_url":"https://github.com/ericmartinezr","followers_url":"https://api.github.com/users/ericmartinezr/followers","following_url":"https://api.github.com/users/ericmartinezr/following{/other_user}","gists_url":"https://api.github.com/users/ericmartinezr/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmartinezr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmartinezr/subscriptions","organizations_url":"https://api.github.com/users/ericmartinezr/orgs","repos_url":"https://api.github.com/users/ericmartinezr/repos","events_url":"https://api.github.com/users/ericmartinezr/events{/privacy}","received_events_url":"https://api.github.com/users/ericmartinezr/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T17:14:24Z","updated_at":"2017-08-31T17:14:24Z","author_association":"CONTRIBUTOR","body":"Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on [StackOverflow](http://stackoverflow.com/) using tag `angular`.\r\n\r\nIf you are wondering why we don't resolve support issues via the issue tracker, please [check out this explanation](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-got-a-question-or-problem)."}}
{"actor":{"display_login":"ericmartinezr"}}