Title: Expose isTypeAssignableTo in TypeChecker? · Issue #11728 · microsoft/TypeScript · GitHub
Open Graph Title: Expose isTypeAssignableTo in TypeChecker? · Issue #11728 · microsoft/TypeScript
X Title: Expose isTypeAssignableTo in TypeChecker? · Issue #11728 · microsoft/TypeScript
Description: I would like to determine if one Type is assignable to another Type. So far I've only found the type comparison and checking functions in checker.ts, but that entire file is marked internal. Is there a way to determine if one type is ass...
Open Graph Description: I would like to determine if one Type is assignable to another Type. So far I've only found the type comparison and checking functions in checker.ts, but that entire file is marked internal. Is the...
X Description: I would like to determine if one Type is assignable to another Type. So far I've only found the type comparison and checking functions in checker.ts, but that entire file is marked internal. Is...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/11728
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose isTypeAssignableTo in TypeChecker?","articleBody":"I would like to determine if one Type is assignable to another Type. So far I've only found the type comparison and checking functions in checker.ts, but that entire file is marked internal. \n\nIs there a way to determine if one type is assignable to another using the exposed typescript library? A question to this effect on StackOverflow has not been answered. If not, could such functionality be added, say to `TypeChecker`?\n","author":{"url":"https://github.com/MeirionHughes","@type":"Person","name":"MeirionHughes"},"datePublished":"2016-10-19T07:30:17Z","url":"https://github.com/microsoft/TypeScript/issues/11728"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5c11b078-63d8-803d-9994-b8a04d429ddb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CA2:23CF06:F73DD4:13E34B4:6B00FF03 |
| html-safe-nonce | 06ee8f7c65be4e3ff7553ae57d27684eff02c26a0c40802c55cb6b3a1a283415 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0EyOjIzQ0YwNjpGNzNERDQ6MTNFMzRCNDo2QjAwRkYwMyIsInZpc2l0b3JfaWQiOiI4OTM5MTUwNjMyMjE3MDE4MTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6352e3bbe5a91d21d2dcf626181b26410b0520242560e74edcf7cfea449a1033 |
| hovercard-subject-tag | issue:183886150 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/11728/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd5d6087ba1ba342fd6a2fcce721e27b960c8d66caf3316cc08ac6e380f61e5e/microsoft/TypeScript/issues/11728 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd5d6087ba1ba342fd6a2fcce721e27b960c8d66caf3316cc08ac6e380f61e5e/microsoft/TypeScript/issues/11728 |
| og:image:alt | I would like to determine if one Type is assignable to another Type. So far I've only found the type comparison and checking functions in checker.ts, but that entire file is marked internal. Is the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MeirionHughes |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width