{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3627","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3627/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3627/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3627/events","html_url":"https://github.com/Microsoft/TypeScript/issues/3627","id":90868547,"number":3627,"title":"Enum Object Keys","user":{"login":"Gaelan","id":4495750,"avatar_url":"https://avatars.githubusercontent.com/u/4495750?v=3","gravatar_id":"","url":"https://api.github.com/users/Gaelan","html_url":"https://github.com/Gaelan","followers_url":"https://api.github.com/users/Gaelan/followers","following_url":"https://api.github.com/users/Gaelan/following{/other_user}","gists_url":"https://api.github.com/users/Gaelan/gists{/gist_id}","starred_url":"https://api.github.com/users/Gaelan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gaelan/subscriptions","organizations_url":"https://api.github.com/users/Gaelan/orgs","repos_url":"https://api.github.com/users/Gaelan/repos","events_url":"https://api.github.com/users/Gaelan/events{/privacy}","received_events_url":"https://api.github.com/users/Gaelan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Duplicate","name":"Duplicate","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T06:25:51Z","updated_at":"2015-06-25T15:54:19Z","closed_at":"2015-06-25T15:54:19Z","body":"```typescript\r\nenum Foo { }\r\n\r\nvar fooMap: { [foo: Foo]: string } // => error TS1023: An index signature parameter type must be 'string' or 'number'.\r\n```\r\n[play][]\r\n* * *\r\nEnums are internally numbers, so this should be able to compile fine.\r\n\r\n[play]: http://www.typescriptlang.org/Playground#src=enum%20Foo%20%7B%20%7D%0D%0A%0D%0Avar%20fooMap%3A%20%7B%20%5Bfoo%3A%20Foo%5D%3A%20string%20%7D"}}