{"action":"created","issue":{"url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/issues/127","repository_url":"https://api.github.com/repos/codemix/babel-plugin-typecheck","labels_url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/issues/127/comments","events_url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/issues/127/events","html_url":"https://github.com/codemix/babel-plugin-typecheck/issues/127","id":137591840,"number":127,"title":"Support for Enums","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"labels":[{"id":205915740,"url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/milestones/1","html_url":"https://github.com/codemix/babel-plugin-typecheck/milestone/1","labels_url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/milestones/1/labels","id":1603689,"number":1,"title":"4.0","description":"Next major version of typecheck, mostly backwards compatible but with far greater compatibility with flow.","creator":{"login":"phpnode","id":363611,"avatar_url":"https://avatars.githubusercontent.com/u/363611?v=3","gravatar_id":"","url":"https://api.github.com/users/phpnode","html_url":"https://github.com/phpnode","followers_url":"https://api.github.com/users/phpnode/followers","following_url":"https://api.github.com/users/phpnode/following{/other_user}","gists_url":"https://api.github.com/users/phpnode/gists{/gist_id}","starred_url":"https://api.github.com/users/phpnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpnode/subscriptions","organizations_url":"https://api.github.com/users/phpnode/orgs","repos_url":"https://api.github.com/users/phpnode/repos","events_url":"https://api.github.com/users/phpnode/events{/privacy}","received_events_url":"https://api.github.com/users/phpnode/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":10,"state":"open","created_at":"2016-02-24T19:43:09Z","updated_at":"2017-01-12T15:32:34Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-01T14:43:43Z","updated_at":"2017-01-12T15:32:34Z","closed_at":"2017-01-12T15:32:34Z","body":"I'm looking at this test: https://github.com/facebook/flow/blob/f1273c67638b5403973a496e30b4a3fe8dfe19bc/tests/enumerror/enumerror.js\n\n``` js\nvar MyStates = {\n    PAUSED: 'PAUSED',\n    ACTIVE: 'ACTIVE',\n    DELETED: 'DELETED',\n};\nfunction isActive2(ad: {state: $Keys<typeof MyStates>}): boolean {\n    return ad.state === MyStates.ACTIVE;\n};\n```\n\nbut trying it my codebase results in `Uncaught ReferenceError: $Keys is not defined`.\n"},"comment":{"url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/issues/comments/272193873","html_url":"https://github.com/codemix/babel-plugin-typecheck/issues/127#issuecomment-272193873","issue_url":"https://api.github.com/repos/codemix/babel-plugin-typecheck/issues/127","id":272193873,"user":{"login":"phpnode","id":363611,"avatar_url":"https://avatars.githubusercontent.com/u/363611?v=3","gravatar_id":"","url":"https://api.github.com/users/phpnode","html_url":"https://github.com/phpnode","followers_url":"https://api.github.com/users/phpnode/followers","following_url":"https://api.github.com/users/phpnode/following{/other_user}","gists_url":"https://api.github.com/users/phpnode/gists{/gist_id}","starred_url":"https://api.github.com/users/phpnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpnode/subscriptions","organizations_url":"https://api.github.com/users/phpnode/orgs","repos_url":"https://api.github.com/users/phpnode/repos","events_url":"https://api.github.com/users/phpnode/events{/privacy}","received_events_url":"https://api.github.com/users/phpnode/received_events","type":"User","site_admin":false},"created_at":"2017-01-12T15:32:34Z","updated_at":"2017-01-12T15:32:34Z","body":"Hi sorry for the delay, this project is now deprecated in favour of [flow-runtime](https://codemix.github.io/flow-runtime/#/) which aims for full flow compatibility. flow-runtime has support for special flow forms such as `$Keys` and `$Shape`"}}
{"actor":{"display_login":"phpnode"}}