{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25510","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25510/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25510/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25510/events","html_url":"https://github.com/Microsoft/TypeScript/issues/25510","id":339264894,"node_id":"MDU6SXNzdWUzMzkyNjQ4OTQ=","number":25510,"title":"Regression in dom.lib.d.ts: TS complains about FileReader's result","user":{"login":"vvs","id":9781,"node_id":"MDQ6VXNlcjk3ODE=","avatar_url":"https://avatars1.githubusercontent.com/u/9781?v=4","gravatar_id":"","url":"https://api.github.com/users/vvs","html_url":"https://github.com/vvs","followers_url":"https://api.github.com/users/vvs/followers","following_url":"https://api.github.com/users/vvs/following{/other_user}","gists_url":"https://api.github.com/users/vvs/gists{/gist_id}","starred_url":"https://api.github.com/users/vvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvs/subscriptions","organizations_url":"https://api.github.com/users/vvs/orgs","repos_url":"https://api.github.com/users/vvs/repos","events_url":"https://api.github.com/users/vvs/events{/privacy}","received_events_url":"https://api.github.com/users/vvs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-08T22:46:26Z","updated_at":"2018-07-08T22:47:13Z","closed_at":null,"author_association":"NONE","body":"<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  3.0.0-dev.20180707\r\n\r\n<!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**  dom, FileReader\r\n\r\n**Code**\r\n\r\nTaken directly from MDN: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload\r\n\r\n```ts\r\nfunction onChange(event) {\r\n    var file = event.target.files[0];\r\n    var reader = new FileReader();\r\n    reader.onload = function(event) {\r\n      // The file's text will be printed here\r\n      console.log(event.target.result)\r\n    };\r\n  \r\n    reader.readAsText(file);\r\n  }\r\n```\r\n\r\n**Expected behavior:**\r\nNo errors.\r\n\r\n**Actual behavior:**\r\n[ts] Property 'result' does not exist on type 'EventTarget'.\r\n\r\n* * *\r\nThis is a regression, since there were no such errors reported in TS 2.9.2.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/403323289","html_url":"https://github.com/Microsoft/TypeScript/issues/25510#issuecomment-403323289","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/25510","id":403323289,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMyMzI4OQ==","user":{"login":"vvs","id":9781,"node_id":"MDQ6VXNlcjk3ODE=","avatar_url":"https://avatars1.githubusercontent.com/u/9781?v=4","gravatar_id":"","url":"https://api.github.com/users/vvs","html_url":"https://github.com/vvs","followers_url":"https://api.github.com/users/vvs/followers","following_url":"https://api.github.com/users/vvs/following{/other_user}","gists_url":"https://api.github.com/users/vvs/gists{/gist_id}","starred_url":"https://api.github.com/users/vvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvs/subscriptions","organizations_url":"https://api.github.com/users/vvs/orgs","repos_url":"https://api.github.com/users/vvs/repos","events_url":"https://api.github.com/users/vvs/events{/privacy}","received_events_url":"https://api.github.com/users/vvs/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T22:47:13Z","updated_at":"2018-07-08T22:47:13Z","author_association":"NONE","body":"It looks like the regression was introduced in 7a7d04e126fb7c1c6074ef26657eddb0f32e4003"}}
{"actor":{"display_login":"vvs"}}