Title: Regression: DTS emit · Issue #38356 · microsoft/TypeScript · GitHub
Open Graph Title: Regression: DTS emit · Issue #38356 · microsoft/TypeScript
X Title: Regression: DTS emit · Issue #38356 · microsoft/TypeScript
Description: Works in TS 3.9.0 beta but not in nightly (4.0.0-dev.20200505) Code: class X { /** * Cancels the request, sending a cancellation to the other party * @param {Object} error __auto_generated__ * @param {string?} error.reason the error reas...
Open Graph Description: Works in TS 3.9.0 beta but not in nightly (4.0.0-dev.20200505) Code: class X { /** * Cancels the request, sending a cancellation to the other party * @param {Object} error __auto_generated__ * @par...
X Description: Works in TS 3.9.0 beta but not in nightly (4.0.0-dev.20200505) Code: class X { /** * Cancels the request, sending a cancellation to the other party * @param {Object} error __auto_generated__ * @par...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/38356
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression: DTS emit","articleBody":"Works in TS `3.9.0 beta` but not in `nightly (4.0.0-dev.20200505)`\r\n\r\nCode:\r\n```js\r\nclass X {\r\n /**\r\n * Cancels the request, sending a cancellation to the other party\r\n * @param {Object} error __auto_generated__\r\n * @param {string?} error.reason the error reason to send the cancellation with\r\n * @param {string?} error.code the error code to send the cancellation with\r\n * @returns {Promise.\u003c*>} resolves when the event has been sent.\r\n */ \r\n async cancel({reason = \"User declined\", code = \"m.user\"} = {}) {}\r\n}\r\n```\r\n\r\nPlayground:\r\n\r\nhttps://www.typescriptlang.org/v2/en/play?ts=4.0.0-dev.20200505&useJavaScript=true#code/MYGwhgzhAEAa0G8CwAoa7oHoBU3UY22gGEwA7YAUxBgBcALS6AJ0oEcBXSiWgGmgiUyAEwCWZAObQw0YOSohwtUQHsy0Wio2NoKhpWbQADmGa0AnvgLQiAARPMwAW0QB5AEYArSsFoBfaANmFUMAfVCwDk1QiSEDMFpKYXCrAjsHZ0QeZnEJAH4AoJCAOlZINW0mIsMyiArNASFhStl5aiVVdQB3UQZUwmh7U0yEbNyCwOZg5mLgFWEmfUnp2XnFrUERFrkKdoTO6B6+tGs7VloOZjIYBAAFYKdRQWKAHmwAPgDWOpAAN25Dox1EtKP8yLRoPRINB3JQhI1wcV+uhsJhoP1IOYKK1diAABQIWoVAC80AARABVQSGBagcRJMn8OYLaCkslOYocalkgKkhB+ACUiD8qFQfiAA\r\n\r\nOld output:\r\n```ts\r\ndeclare class X {\r\n /**\r\n * Cancels the request, sending a cancellation to the other party\r\n * @param {Object} error __auto_generated__\r\n * @param {string?} error.reason the error reason to send the cancellation with\r\n * @param {string?} error.code the error code to send the cancellation with\r\n * @returns {Promise.\u003c*>} resolves when the event has been sent.\r\n */\r\n cancel({ reason, code }?: {\r\n reason: string;\r\n code: string;\r\n }): Promise\u003cany>;\r\n}\r\n```\r\n\r\nNew output (invalid): \r\n```ts\r\ndeclare class X {\r\n /**\r\n * Cancels the request, sending a cancellation to the other party\r\n * @param {Object} error __auto_generated__\r\n * @param {string?} error.reason the error reason to send the cancellation with\r\n * @param {string?} error.code the error code to send the cancellation with\r\n * @returns {Promise.\u003c*>} resolves when the event has been sent.\r\n */\r\n cancel({ reason, code }?: \r\n * @param {?string} error.reason the error reason to send the cancellation with\r\n * @param {?string} error.code the error code to send the cancellation with\r\n ): Promise\u003cany>;\r\n}\r\n```","author":{"url":"https://github.com/Jack-Works","@type":"Person","name":"Jack-Works"},"datePublished":"2020-05-06T08:46:03Z","url":"https://github.com/microsoft/TypeScript/issues/38356"}
| 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:83493b9f-8e2c-91cb-d67a-15df213fca7f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E264:63875:8B0142:BA29D6:6B00E142 |
| html-safe-nonce | 2090d8e844efdc294210e780f970f16ed9ab09909f89e8cb1ddf0e34f474eda0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjY0OjYzODc1OjhCMDE0MjpCQTI5RDY6NkIwMEUxNDIiLCJ2aXNpdG9yX2lkIjoiNTM0NzU5NzM3MzI2MDQ4OTAyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85d5833b8f28e174e4c79e959d0b3ec159e06763c582a2a1be3654879b6a6a7d |
| hovercard-subject-tag | issue:613151212 |
| 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/38356/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce20de8e772e98629adeb82b4beb2146c5b80d7d89720f212ebc3c52e3137052/microsoft/TypeScript/issues/38356 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce20de8e772e98629adeb82b4beb2146c5b80d7d89720f212ebc3c52e3137052/microsoft/TypeScript/issues/38356 |
| og:image:alt | Works in TS 3.9.0 beta but not in nightly (4.0.0-dev.20200505) Code: class X { /** * Cancels the request, sending a cancellation to the other party * @param {Object} error __auto_generated__ * @par... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Jack-Works |
| 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