Title: Expose more functions of compiler api to public (from TypeChecker and Program) · Issue #17680 · microsoft/TypeScript · GitHub
Open Graph Title: Expose more functions of compiler api to public (from TypeChecker and Program) · Issue #17680 · microsoft/TypeScript
X Title: Expose more functions of compiler api to public (from TypeChecker and Program) · Issue #17680 · microsoft/TypeScript
Description: I'm using compiler api for many code transformations, using Transformation Api (#13762) and Printing api(#13761). I can't find many functions of TypeChecker in public. They exist, they do exactly what I need, but I can't use them because...
Open Graph Description: I'm using compiler api for many code transformations, using Transformation Api (#13762) and Printing api(#13761). I can't find many functions of TypeChecker in public. They exist, they do exactly w...
X Description: I'm using compiler api for many code transformations, using Transformation Api (#13762) and Printing api(#13761). I can't find many functions of TypeChecker in public. They exist, they do e...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/17680
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose more functions of compiler api to public (from TypeChecker and Program)","articleBody":"I'm using compiler api for many code transformations, using Transformation Api (https://github.com/Microsoft/TypeScript/issues/13762) and Printing api(https://github.com/Microsoft/TypeScript/pull/13761). I can't find many functions of TypeChecker in public. They exist, they do exactly what I need, but I can't use them because they are not public. e.g function isArrayLikeType(type: Type): boolean in checker.ts. Many very useful functions are internal functions of createTypeChecker. And nobody can use them. What should I do to check if a Type is ArrayLike or not? \r\nThis question is not only about isArrayLikeType function. There are many useful functions that nobody can use except TypeChecker itself. Same issue in program.ts.\r\nCode is splitted to many small functions and you can't just copy-paste some code, because many of this functions uses other private functions.","author":{"url":"https://github.com/Busyrev","@type":"Person","name":"Busyrev"},"datePublished":"2017-08-08T13:51:02Z","url":"https://github.com/microsoft/TypeScript/issues/17680"}
| 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:c35b12a7-6841-61ac-01c5-b32a5660c24b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDE6:2978F1:BAED44:F2AE10:6B00ECB6 |
| html-safe-nonce | 4adb4060ef4e54f7ce8f7d35b65ca20daa909ff47eb78b735c69497f1126cb62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREU2OjI5NzhGMTpCQUVENDQ6RjJBRTEwOjZCMDBFQ0I2IiwidmlzaXRvcl9pZCI6IjMzMzM4MjA1MTk2NTU5OTI1MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 032e98a8d6665d1b5976b7d7ce9229cf88b50fd8f8c82a5d153bf2d515b99658 |
| hovercard-subject-tag | issue:248722042 |
| 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/17680/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5038b3a5f51aa2126adfe0584f1d09aa7e8d27668b935842a23ea6397da59198/microsoft/TypeScript/issues/17680 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5038b3a5f51aa2126adfe0584f1d09aa7e8d27668b935842a23ea6397da59198/microsoft/TypeScript/issues/17680 |
| og:image:alt | I'm using compiler api for many code transformations, using Transformation Api (#13762) and Printing api(#13761). I can't find many functions of TypeChecker in public. They exist, they do exactly w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Busyrev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width