{"action":"created","issue":{"url":"https://api.github.com/repos/dsherret/ts-type-info/issues/201","repository_url":"https://api.github.com/repos/dsherret/ts-type-info","labels_url":"https://api.github.com/repos/dsherret/ts-type-info/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/dsherret/ts-type-info/issues/201/comments","events_url":"https://api.github.com/repos/dsherret/ts-type-info/issues/201/events","html_url":"https://github.com/dsherret/ts-type-info/issues/201","id":183620938,"number":201,"title":"Type assignment checking?","user":{"login":"MeirionHughes","id":3584509,"avatar_url":"https://avatars.githubusercontent.com/u/3584509?v=3","gravatar_id":"","url":"https://api.github.com/users/MeirionHughes","html_url":"https://github.com/MeirionHughes","followers_url":"https://api.github.com/users/MeirionHughes/followers","following_url":"https://api.github.com/users/MeirionHughes/following{/other_user}","gists_url":"https://api.github.com/users/MeirionHughes/gists{/gist_id}","starred_url":"https://api.github.com/users/MeirionHughes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeirionHughes/subscriptions","organizations_url":"https://api.github.com/users/MeirionHughes/orgs","repos_url":"https://api.github.com/users/MeirionHughes/repos","events_url":"https://api.github.com/users/MeirionHughes/events{/privacy}","received_events_url":"https://api.github.com/users/MeirionHughes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-18T08:28:01Z","updated_at":"2016-10-19T02:43:53Z","closed_at":null,"body":"Does this library have support for checking if one Type is assignable to another (via reflection)? \r\n\r\nI've been looking through the main typescript code, and it seems all the checking code is hidden from the main library (checker.ts is marked internal). :/"},"comment":{"url":"https://api.github.com/repos/dsherret/ts-type-info/issues/comments/254695642","html_url":"https://github.com/dsherret/ts-type-info/issues/201#issuecomment-254695642","issue_url":"https://api.github.com/repos/dsherret/ts-type-info/issues/201","id":254695642,"user":{"login":"dsherret","id":1609021,"avatar_url":"https://avatars.githubusercontent.com/u/1609021?v=3","gravatar_id":"","url":"https://api.github.com/users/dsherret","html_url":"https://github.com/dsherret","followers_url":"https://api.github.com/users/dsherret/followers","following_url":"https://api.github.com/users/dsherret/following{/other_user}","gists_url":"https://api.github.com/users/dsherret/gists{/gist_id}","starred_url":"https://api.github.com/users/dsherret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsherret/subscriptions","organizations_url":"https://api.github.com/users/dsherret/orgs","repos_url":"https://api.github.com/users/dsherret/repos","events_url":"https://api.github.com/users/dsherret/events{/privacy}","received_events_url":"https://api.github.com/users/dsherret/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T02:43:53Z","updated_at":"2016-10-19T02:43:53Z","body":"Sorry, it's not possible at the moment. There is an option to expose the nodes from the compiler (see [Include tsNodes](https://github.com/dsherret/ts-type-info/tree/2c1a50d5849187505dcd08fa859889e5e2c3df70#include-tsnodes)). Using that and the type checker you should be able to get the types and then check if one type is assignable to another... I'm not sure how though because I've never looked into it.\r\n\r\nAlso, I've opened #202 to add a flag to include the compiler types... that way the types this library returns will have a property with the corresponding internal typescript compiler type on it so you don't manually have to get it from the nodes."}}
{"actor":{"display_login":"dsherret"}}