Title: How do you do a straight TS emit? · Issue #1651 · microsoft/TypeScript · GitHub
Open Graph Title: How do you do a straight TS emit? · Issue #1651 · microsoft/TypeScript
X Title: How do you do a straight TS emit? · Issue #1651 · microsoft/TypeScript
Description: I want to be able to programmatically create a TS file and emit it. Daniel Rosenwasser (@DanielRosenwasser) mentioned last week: It honestly may be better to do a straight TS emit if what you're looking for is definition file emit, if yo...
Open Graph Description: I want to be able to programmatically create a TS file and emit it. Daniel Rosenwasser (@DanielRosenwasser) mentioned last week: It honestly may be better to do a straight TS emit if what you're lo...
X Description: I want to be able to programmatically create a TS file and emit it. Daniel Rosenwasser (@DanielRosenwasser) mentioned last week: It honestly may be better to do a straight TS emit if what you'r...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/1651
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How do you do a straight TS emit?","articleBody":"I want to be able to programmatically create a TS file and emit it.\n\n@DanielRosenwasser [mentioned last week](https://github.com/Microsoft/TypeScript/issues/1514#issuecomment-69105512):\n\n> It honestly may be better to do a straight TS emit if what you're looking for is definition file emit, if you're looking to use it as a verification pass for an intermediate language, or if you're looking to take advantage of our downlevel emit functionality.\n\nHow do do a `straight TS emit`?\n\nIn the [Using the Compiler API](https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API) it says:\n\n> Emitter: Output generated from a set of inputs (.ts and .d.ts) files can be one of: JavaScript (.js), definitions (.d.ts), or source maps (.js.map)\n\nThat is cool that you can emit a `.d.ts` definition. Is there any way to emit a `.ts` file? Is there anything that can \"pretty print\" a TS AST?\n","author":{"url":"https://github.com/ctaggart","@type":"Person","name":"ctaggart"},"datePublished":"2015-01-13T00:05:34Z","url":"https://github.com/microsoft/TypeScript/issues/1651"}
| 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:05cd7548-64fb-e905-ca45-f7d80a1eccc7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBA2:3DD488:6A26ED:888240:6B00E1C3 |
| html-safe-nonce | a411d53dd91b8856db68ff46335285bc30fa30c9ec08b8ee15a7f3164451d9dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkEyOjNERDQ4ODo2QTI2RUQ6ODg4MjQwOjZCMDBFMUMzIiwidmlzaXRvcl9pZCI6IjYyMjU2NjQzNjcyNDMzMDkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 133835e0f4717a22b337ded59f16a468af005834909a922551d8908f6607e5d9 |
| hovercard-subject-tag | issue:54127630 |
| 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/1651/issue_layout |
| twitter:image | https://opengraph.githubassets.com/adaf59b96dc21604fe411c01017a02e5d6b319378ff8afb336f7d176c2e07813/microsoft/TypeScript/issues/1651 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/adaf59b96dc21604fe411c01017a02e5d6b319378ff8afb336f7d176c2e07813/microsoft/TypeScript/issues/1651 |
| og:image:alt | I want to be able to programmatically create a TS file and emit it. Daniel Rosenwasser (@DanielRosenwasser) mentioned last week: It honestly may be better to do a straight TS emit if what you're lo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ctaggart |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width