Title: Back type assertion · Issue #3186 · microsoft/TypeScript · GitHub
Open Graph Title: Back type assertion · Issue #3186 · microsoft/TypeScript
X Title: Back type assertion · Issue #3186 · microsoft/TypeScript
Description: Instead of writing: foo/*1*/ // and then go back with the cursor /*1*/foo // and then write the type assertion (
Open Graph Description: Instead of writing: foo/*1*/ // and then go back with the cursor /*1*/foo // and then write the type assertion (
X Description: Instead of writing: foo/*1*/ // and then go back with the cursor /*1*/foo // and then write the type assertion (<Foo>foo).bar/*1*/ // and then go back with the cursor /*1*/(<Foo>foo).ba...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/3186
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Back type assertion","articleBody":"Instead of writing:\n\n``` typescript\nfoo/*1*/\n// and then go back with the cursor\n/*1*/foo\n// and then write the type assertion\n(\u003cFoo>foo).bar/*1*/\n// and then go back with the cursor\n/*1*/(\u003cFoo>foo).bar\n// and then write the type assertion\n(\u003cBar>(\u003cFoo>foo).bar).text/*1*/\n```\n\nWe could just write it without going back-and-forth with the cursor:\n\n``` typescript\nfoo\u003cFoo>.bar\u003cBar>.text\n```\n\nIt is also easier to map the type to each property accessor.\n","author":{"url":"https://github.com/tinganho","@type":"Person","name":"tinganho"},"datePublished":"2015-05-16T02:17:37Z","url":"https://github.com/microsoft/TypeScript/issues/3186"}
| 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:1ce75ac7-9549-ee89-0fda-2fe6e09da561 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B968:B1B84:1383447:18B9037:6B0160D8 |
| html-safe-nonce | fd02a93b67d39ff4cd955d017cb15e0ba554fb8e498040722335a36508f01539 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTY4OkIxQjg0OjEzODM0NDc6MThCOTAzNzo2QjAxNjBEOCIsInZpc2l0b3JfaWQiOiI0OTc0MTQyMTQ1NzM3ODc1NjcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4792c56b5f866bd61933996038738004ef4bfbf874efc1baf94ff35d939b9054 |
| hovercard-subject-tag | issue:76921518 |
| 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/3186/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0670068210c896a8507e4915a72aa14be638fc95c4fd3528ceaf5f4037a670f/microsoft/TypeScript/issues/3186 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0670068210c896a8507e4915a72aa14be638fc95c4fd3528ceaf5f4037a670f/microsoft/TypeScript/issues/3186 |
| og:image:alt | Instead of writing: foo/*1*/ // and then go back with the cursor /*1*/foo // and then write the type assertion ( |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tinganho |
| 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