{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1584","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1584/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1584/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1584/events","html_url":"https://github.com/Microsoft/TypeScript/issues/1584","id":53222277,"number":1584,"title":"any type in callback parameter","user":{"login":"NN---","id":580536,"avatar_url":"https://avatars.githubusercontent.com/u/580536?v=3","gravatar_id":"","url":"https://api.github.com/users/NN---","html_url":"https://github.com/NN---","followers_url":"https://api.github.com/users/NN---/followers","following_url":"https://api.github.com/users/NN---/following{/other_user}","gists_url":"https://api.github.com/users/NN---/gists{/gist_id}","starred_url":"https://api.github.com/users/NN---/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NN---/subscriptions","organizations_url":"https://api.github.com/users/NN---/orgs","repos_url":"https://api.github.com/users/NN---/repos","events_url":"https://api.github.com/users/NN---/events{/privacy}","received_events_url":"https://api.github.com/users/NN---/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/By+Design","name":"By Design","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-01T15:47:37Z","updated_at":"2015-01-02T06:59:42Z","closed_at":"2015-01-01T16:09:28Z","body":"Is it intended behavior ?\r\n\r\n```typescript\r\nfunction x(f: (g: number) => void): void { f(1); }\r\n\r\nx(function (d) {\r\n   // d is number\r\n});\r\n```\r\n\r\nAdding parentheses around the function makes 'd' to be any type:\r\n\r\n```typescript\r\nfunction x(f: (g: number) => void): void { f(1); }\r\n\r\nx((function (d) {\r\n  // d is any\r\n}));\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/68511392","html_url":"https://github.com/Microsoft/TypeScript/issues/1584#issuecomment-68511392","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/1584","id":68511392,"user":{"login":"NN---","id":580536,"avatar_url":"https://avatars.githubusercontent.com/u/580536?v=3","gravatar_id":"","url":"https://api.github.com/users/NN---","html_url":"https://github.com/NN---","followers_url":"https://api.github.com/users/NN---/followers","following_url":"https://api.github.com/users/NN---/following{/other_user}","gists_url":"https://api.github.com/users/NN---/gists{/gist_id}","starred_url":"https://api.github.com/users/NN---/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NN---/subscriptions","organizations_url":"https://api.github.com/users/NN---/orgs","repos_url":"https://api.github.com/users/NN---/repos","events_url":"https://api.github.com/users/NN---/events{/privacy}","received_events_url":"https://api.github.com/users/NN---/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T06:59:42Z","updated_at":"2015-01-02T06:59:42Z","body":"It is pretty annoying but I don't know how to solve it .\r\nI think VS integration could propose a type hint in this case. I mean it can show a  popup suggesting adding explicit types to callback function parameters until there will be a  perfect solution."}}