{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4868","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4868/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4868/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4868/events","html_url":"https://github.com/Microsoft/TypeScript/issues/4868","id":107295036,"number":4868,"title":"Expanded type guard suggestions","user":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/In%20Discussion","name":"In Discussion","color":"556b75"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T23:32:28Z","updated_at":"2015-09-19T08:41:17Z","closed_at":null,"body":"Potential \"safe\" type guards based on in-office discussion:\r\n\r\n* When guarded by `typeof x === 'function'`, remove any types from the union that do not have call or construct signatures\r\n* When guarded by `typeof x === 'object'`, remove all primitives from the union, as well as any types that have any call or construct signatures\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/141636202","html_url":"https://github.com/Microsoft/TypeScript/issues/4868#issuecomment-141636202","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/4868","id":141636202,"user":{"login":"kitsonk","id":1282577,"avatar_url":"https://avatars.githubusercontent.com/u/1282577?v=3","gravatar_id":"","url":"https://api.github.com/users/kitsonk","html_url":"https://github.com/kitsonk","followers_url":"https://api.github.com/users/kitsonk/followers","following_url":"https://api.github.com/users/kitsonk/following{/other_user}","gists_url":"https://api.github.com/users/kitsonk/gists{/gist_id}","starred_url":"https://api.github.com/users/kitsonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitsonk/subscriptions","organizations_url":"https://api.github.com/users/kitsonk/orgs","repos_url":"https://api.github.com/users/kitsonk/repos","events_url":"https://api.github.com/users/kitsonk/events{/privacy}","received_events_url":"https://api.github.com/users/kitsonk/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T08:41:17Z","updated_at":"2015-09-19T08:41:17Z","body":"Do you also need to account for:\r\n\r\n - When guarded by `typeof x === 'symbol'`\r\n\r\nAlso according to the [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-typeof-operator), typeof functions only need to implement `[[Call]]` so something that has a construct but not `[[Call]]` would not be a function."}}