{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21509","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21509/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21509/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21509/events","html_url":"https://github.com/Microsoft/TypeScript/issues/21509","id":293044473,"number":21509,"title":"Provide a quick fix for uninitalized class properties","user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars2.githubusercontent.com/u/972891?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"labels":[{"id":487610139,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Domain:%20Code%20Actions","name":"Domain: Code Actions","color":"1d76db","default":false},{"id":113971155,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75","default":false},{"id":117630704,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/help%20wanted","name":"help wanted","color":"009800","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-01-31T06:23:07Z","updated_at":"2018-02-02T01:55:28Z","closed_at":null,"author_association":"MEMBER","body":"```ts\r\nclass Point {\r\n    z: string;\r\n    constructor() {\r\n    }\r\n}\r\n```\r\n\r\nWe should provide a quick fix here to provide a definite assignment assertion on `z` under `--strictPropertyInitialization`. Bonus points if we only provide the quick fix when the property has *actually* been written to!"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/362461708","html_url":"https://github.com/Microsoft/TypeScript/issues/21509#issuecomment-362461708","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/21509","id":362461708,"user":{"login":"Kingwl","id":6831019,"avatar_url":"https://avatars3.githubusercontent.com/u/6831019?v=4","gravatar_id":"","url":"https://api.github.com/users/Kingwl","html_url":"https://github.com/Kingwl","followers_url":"https://api.github.com/users/Kingwl/followers","following_url":"https://api.github.com/users/Kingwl/following{/other_user}","gists_url":"https://api.github.com/users/Kingwl/gists{/gist_id}","starred_url":"https://api.github.com/users/Kingwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kingwl/subscriptions","organizations_url":"https://api.github.com/users/Kingwl/orgs","repos_url":"https://api.github.com/users/Kingwl/repos","events_url":"https://api.github.com/users/Kingwl/events{/privacy}","received_events_url":"https://api.github.com/users/Kingwl/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T01:55:28Z","updated_at":"2018-02-02T01:55:28Z","author_association":"CONTRIBUTOR","body":"thanks for your response \r\n\r\nand if the TT has the constructor \r\n```\r\nclass TT {\r\n    constructor () {}\r\n}\r\n```\r\n\r\nthen should i create a instance of TT in the prop b?\r\n\r\n```\r\n\r\nclass T {\r\n    c: number = 0 ;\r\n    b: TT = new TT(); // this\r\n    a: string = \"\";\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"Kingwl"}}