Title: Trailing trivia removed for some object properties · Issue #10385 · microsoft/TypeScript · GitHub
Open Graph Title: Trailing trivia removed for some object properties · Issue #10385 · microsoft/TypeScript
X Title: Trailing trivia removed for some object properties · Issue #10385 · microsoft/TypeScript
Description: TypeScript Version: 1.8.x / Playground Code // the export annotations export function bug() { // hello // another? // return annotation return { // return object annotation outer: { // more! inner1: { // here too // and more p1: 'v1', //...
Open Graph Description: TypeScript Version: 1.8.x / Playground Code // the export annotations export function bug() { // hello // another? // return annotation return { // return object annotation outer: { // more! inner1...
X Description: TypeScript Version: 1.8.x / Playground Code // the export annotations export function bug() { // hello // another? // return annotation return { // return object annotation outer: { // more! inner1...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/10385
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Trailing trivia removed for some object properties","articleBody":"**TypeScript Version:** 1.8.x / Playground\n\n**Code**\n\n``` ts\n// the export annotations\nexport function bug() {\n // hello\n\n // another?\n\n // return annotation\n return {\n // return object annotation\n outer: {\n // more!\n inner1: { // here too\n // and more\n\n p1: 'v1', // comment1\n p2: 'v2', // comment2\n p3: 'v3' // last comment\n } // here?\n } // and here?\n }; // here too?\n\n // and finally here\n}\n\n```\n\n[Playground demo](http://www.typescriptlang.org/play/#src=%2F%2F%20the%20export%20annotations%0Aexport%20function%20bug%28%29%20%7B%0A%09%2F%2F%20hello%0A%09%0A%09%2F%2F%20another%3F%0A%09%0A%09%2F%2F%20return%20annotation%0A%09return%20%7B%0A%09%09%2F%2F%20return%20object%20annotation%0A%09%09outer%3A%20%7B%0A%09%09%09%2F%2F%20more!%0A%09%09%09inner1%3A%20%7B%20%2F%2F%20here%20too%0A%09%09%09%09%2F%2F%20and%20more%0A%09%09%09%09%0A%09%09%09%09p1%3A%20'v1'%2C%20%2F%2F%20comment1%0A%09%09%09%09p2%3A%20'v2'%2C%20%2F%2F%20comment2%0A%09%09%09%09p3%3A%20'v3'%20%20%2F%2F%20last%20comment%0A%09%09%09%7D%20%2F%2F%20here%3F%0A%09%09%7D%20%2F%2F%20and%20here%3F%0A%09%7D%3B%20%2F%2F%20here%20too%3F%0A%09%0A%09%2F%2F%20and%20finally%20here%0A%7D)\n\n**Expected behavior:**\nAll comments preserved\n\n**Actual behavior:** \n`comment1` and `comment2` are removed\n","author":{"url":"https://github.com/RussKie","@type":"Person","name":"RussKie"},"datePublished":"2016-08-17T11:44:41Z","url":"https://github.com/microsoft/TypeScript/issues/10385"}
| 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:8a1d1494-18a5-573e-e3de-4476f97d0386 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8878:3A05E7:BF028:FD8D0:6B015ED0 |
| html-safe-nonce | 9bb4497c2bfbfd3453a059c59c121b44cb8f3c1bc27e054c8f26639b6e1f8e0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODc4OjNBMDVFNzpCRjAyODpGRDhEMDo2QjAxNUVEMCIsInZpc2l0b3JfaWQiOiI3ODU2MTIxOTI5MjgxOTIwNzIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5c6f6dc55dc9b4a0626cb580d3cef65391d97decd49101c09bbb6f3a02df4b78 |
| hovercard-subject-tag | issue:171637648 |
| 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/10385/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cfbf922b221b25ad730c3a27d3e627f4ebd7127bf77bf899936cfb9782af9014/microsoft/TypeScript/issues/10385 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cfbf922b221b25ad730c3a27d3e627f4ebd7127bf77bf899936cfb9782af9014/microsoft/TypeScript/issues/10385 |
| og:image:alt | TypeScript Version: 1.8.x / Playground Code // the export annotations export function bug() { // hello // another? // return annotation return { // return object annotation outer: { // more! inner1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RussKie |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width