{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2072","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2072/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2072/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2072/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2072","id":58159616,"number":2072,"title":"Type Guards not working for Function type","user":{"login":"omidkrad","id":767147,"avatar_url":"https://avatars.githubusercontent.com/u/767147?v=3","gravatar_id":"","url":"https://api.github.com/users/omidkrad","html_url":"https://github.com/omidkrad","followers_url":"https://api.github.com/users/omidkrad/followers","following_url":"https://api.github.com/users/omidkrad/following{/other_user}","gists_url":"https://api.github.com/users/omidkrad/gists{/gist_id}","starred_url":"https://api.github.com/users/omidkrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omidkrad/subscriptions","organizations_url":"https://api.github.com/users/omidkrad/orgs","repos_url":"https://api.github.com/users/omidkrad/repos","events_url":"https://api.github.com/users/omidkrad/events{/privacy}","received_events_url":"https://api.github.com/users/omidkrad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/By%20Design","name":"By Design","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-19T02:17:00Z","updated_at":"2015-02-19T18:12:24Z","closed_at":"2015-02-19T05:47:12Z","body":"```typescript\r\ninterface ObjectHash {\r\n    [key: string]: any;\r\n}\r\n\r\nvar items: ObjectHash | { () : ObjectHash };\r\n\r\nitems = () => {\r\n\treturn {\r\n\t\t\"key\": \"value\"\r\n\t}\r\n}\r\n\r\nif (items instanceof Function)\r\n{\r\n\titems(); // Why ERROR?!\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/75104847","html_url":"https://github.com/Microsoft/TypeScript/issues/2072#issuecomment-75104847","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2072","id":75104847,"user":{"login":"omidkrad","id":767147,"avatar_url":"https://avatars.githubusercontent.com/u/767147?v=3","gravatar_id":"","url":"https://api.github.com/users/omidkrad","html_url":"https://github.com/omidkrad","followers_url":"https://api.github.com/users/omidkrad/followers","following_url":"https://api.github.com/users/omidkrad/following{/other_user}","gists_url":"https://api.github.com/users/omidkrad/gists{/gist_id}","starred_url":"https://api.github.com/users/omidkrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omidkrad/subscriptions","organizations_url":"https://api.github.com/users/omidkrad/orgs","repos_url":"https://api.github.com/users/omidkrad/repos","events_url":"https://api.github.com/users/omidkrad/events{/privacy}","received_events_url":"https://api.github.com/users/omidkrad/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T18:12:24Z","updated_at":"2015-02-19T18:12:24Z","body":"> Consider a subtype of ObjectHash that is also a function\r\n\r\nI'm not sure how to do that. Can you please elaborate? How would you create a Type Guard for `() => ObjectHash`?\r\n\r\nThanks!"}}