Title: infer in docs in 2.8 release notes · Issue #34684 · microsoft/TypeScript · GitHub
Open Graph Title: infer in docs in 2.8 release notes · Issue #34684 · microsoft/TypeScript
X Title: infer in docs in 2.8 release notes · Issue #34684 · microsoft/TypeScript
Description: TypeScript Version: 3.6.4 Docs https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html About half way through the above release-notes: type Bar
Open Graph Description: TypeScript Version: 3.6.4 Docs https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html About half way through the above release-notes: type Bar
X Description: TypeScript Version: 3.6.4 Docs https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html About half way through the above release-notes: type Bar<T> = T extends { a: (x: ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/34684
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"infer in docs in 2.8 release notes","articleBody":"**TypeScript Version:** 3.6.4\r\n\r\n**Docs**\r\n\r\nhttps://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html\r\n\r\nAbout half way through the above release-notes:\r\n\r\n```javascript\r\ntype Bar\u003cT> = T extends { a: (x: infer U) => void, b: (x: infer U) => void } ? U : never;\r\ntype T20 = Bar\u003c{ a: (x: string) => void, b: (x: string) => void }>; // string\r\ntype T21 = Bar\u003c{ a: (x: string) => void, b: (x: number) => void }>; // string & number\r\n```\r\n\r\nT21 is `never` with tsc 3.6.4 but with 2.8 it is `string & number`. Would be great if that doc had a link to the updated functionality or noted that it's changed.\r\n\r\n","author":{"url":"https://github.com/guyellis","@type":"Person","name":"guyellis"},"datePublished":"2019-10-23T22:18:55Z","url":"https://github.com/microsoft/TypeScript/issues/34684"}
| 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:4766b66f-8291-0941-0baa-7556e9b89c39 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD58:15015:5E9DA:816A4:6B04A5FD |
| html-safe-nonce | 88bc7b6f2f9493d6501cf6340f54956499a03ad45dee206edf4f36a5716d3fb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDU4OjE1MDE1OjVFOURBOjgxNkE0OjZCMDRBNUZEIiwidmlzaXRvcl9pZCI6IjYzMDkwODYxOTgzMDA0NTIzNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 98bc4c28e54ea8b2ac3122ae5c85c488c6a7035b743c5f7fa5ce8162a3d11000 |
| hovercard-subject-tag | issue:511601228 |
| 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/34684/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c58c3a5297efa599f29c370e1ea4de223e65b3f59ee05392960337a3da337a8/microsoft/TypeScript/issues/34684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c58c3a5297efa599f29c370e1ea4de223e65b3f59ee05392960337a3da337a8/microsoft/TypeScript/issues/34684 |
| og:image:alt | TypeScript Version: 3.6.4 Docs https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html About half way through the above release-notes: type Bar |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | guyellis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width