{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/218","labels_url":"https://api.github.com/repos/facebook/flow/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/218/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/218/events","html_url":"https://github.com/facebook/flow/issues/218","id":54281200,"number":218,"title":"How to use EventTarget?","user":{"login":"sairion","id":484290,"avatar_url":"https://avatars.githubusercontent.com/u/484290?v=3","gravatar_id":"","url":"https://api.github.com/users/sairion","html_url":"https://github.com/sairion","followers_url":"https://api.github.com/users/sairion/followers","following_url":"https://api.github.com/users/sairion/following{/other_user}","gists_url":"https://api.github.com/users/sairion/gists{/gist_id}","starred_url":"https://api.github.com/users/sairion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sairion/subscriptions","organizations_url":"https://api.github.com/users/sairion/orgs","repos_url":"https://api.github.com/users/sairion/repos","events_url":"https://api.github.com/users/sairion/events{/privacy}","received_events_url":"https://api.github.com/users/sairion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/flow/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-14T03:50:49Z","updated_at":"2015-02-13T17:27:16Z","closed_at":null,"body":"Given following jsx file:\r\n```js\r\n/* @flow */\r\nvar TheInput = React.createClass({\r\n    getInitialState() {\r\n        return {quantity: 0};\r\n    },\r\n    handleChange(e : Event) {\r\n        console.log(e.target.value);\r\n    },\r\n    render() {\r\n        return (\r\n            <form>\r\n                <input type=\"number\" min=\"0\" value={this.state.quantity} onChange={this.handleChange} />\r\n            </form>\r\n        );\r\n    }\r\n});\r\n\r\nReact.render(\r\n  <TheInput />,\r\n  document.body\r\n);\r\n```\r\n\r\n```console\r\n$ flow\r\n/Users/user/app/flow-test/reactElement.js:7:21,34: property value\r\nProperty not found in\r\n  /private/var/folders/p7/pxfd7rs173nbt14rz38hd7dr0000gn/T/flow_user/flowlib_377ed47d/lib/dom.js:73:13,23: EventTarget\r\n```\r\nI would like to know how to use `e.target.value`, without setting the argument `e` as `any`."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/74291522","html_url":"https://github.com/facebook/flow/issues/218#issuecomment-74291522","issue_url":"https://api.github.com/repos/facebook/flow/issues/218","id":74291522,"user":{"login":"bakesteve","id":605712,"avatar_url":"https://avatars.githubusercontent.com/u/605712?v=3","gravatar_id":"","url":"https://api.github.com/users/bakesteve","html_url":"https://github.com/bakesteve","followers_url":"https://api.github.com/users/bakesteve/followers","following_url":"https://api.github.com/users/bakesteve/following{/other_user}","gists_url":"https://api.github.com/users/bakesteve/gists{/gist_id}","starred_url":"https://api.github.com/users/bakesteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakesteve/subscriptions","organizations_url":"https://api.github.com/users/bakesteve/orgs","repos_url":"https://api.github.com/users/bakesteve/repos","events_url":"https://api.github.com/users/bakesteve/events{/privacy}","received_events_url":"https://api.github.com/users/bakesteve/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T17:27:16Z","updated_at":"2015-02-13T17:27:16Z","body":"yeah - that'd be good - though [looks like](https://github.com/facebook/flow/commit/e89621c4de36f0aabb57c48e8a7a7f7702d07390#diff-5ca8a047db3f6ee8d65a46bba4471236R155) its still saying currentTarget => EventTarget rather than DOMEventTarget, so currentTarget should always be a vaild DOMElement - or am I missing something?"}}