Title: Argument of any no longer matches `
Open Graph Title: Argument of any no longer matches `
X Title: Argument of any no longer matches `
Description: Based on code from knockout on DT: interface Punch {
Open Graph Description: Based on code from knockout on DT: interface Punch {
X Description: Based on code from knockout on DT: interface Punch { <T>(value: T): T; <T = any>(value: null): T | null } function x(p: Punch) { var wat = p<number>(5 as any) var wit = p<numbe...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/39208
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Argument of any no longer matches `\u003cT>(x: T) => T` in overload set","articleBody":"Based on code from knockout on DT:\r\n\r\n```ts\r\ninterface Punch {\r\n \u003cT>(value: T): T;\r\n \u003cT = any>(value: null): T | null\r\n}\r\nfunction x(p: Punch) {\r\n var wat = p\u003cnumber>(5 as any)\r\n var wit = p\u003cnumber>('hi')\r\n var wot = p\u003cnumber>(5)\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n`wat: number, wit: number, wot: number`\r\n\r\n**Actual behavior:**\r\n\r\n`wat: number | null, wit: number | null, wot: number`","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2020-06-23T15:54:43Z","url":"https://github.com/microsoft/TypeScript/issues/39208"}
| 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:3d5c4cbd-c173-4ac3-83fe-0b7260aa41b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C478:21E3E7:71B5B9:984937:6B00D7DF |
| html-safe-nonce | 41dbfd6a1b44d612397ded524b04646842181b6dd1d37fa856d984c7623a1743 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDc4OjIxRTNFNzo3MUI1Qjk6OTg0OTM3OjZCMDBEN0RGIiwidmlzaXRvcl9pZCI6IjEwODY1MTE2MTgyNjQ3MTcyNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d95f0ec98957f63d9b28295ea48bb522de67ca62ce7570b060648b3e1f48ae9e |
| hovercard-subject-tag | issue:643957242 |
| 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/39208/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6d74b241a298d4324c3aa23e7fa5774b621df8b46df5b960c3406047ac1cc02/microsoft/TypeScript/issues/39208 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6d74b241a298d4324c3aa23e7fa5774b621df8b46df5b960c3406047ac1cc02/microsoft/TypeScript/issues/39208 |
| og:image:alt | Based on code from knockout on DT: interface Punch { |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sandersn |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| 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 | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width