Title: No excess property checks when dealing with tagged unions · Issue #12745 · microsoft/TypeScript · GitHub
Open Graph Title: No excess property checks when dealing with tagged unions · Issue #12745 · microsoft/TypeScript
X Title: No excess property checks when dealing with tagged unions · Issue #12745 · microsoft/TypeScript
Description: Version: 2.1.4 interface None { hasValue: false; } interface Some { hasValue: true; value: any; } var x: None | Some = { hasValue: false, value: [], } Expected: Excess property error on value in the object literal. Actual: No error.
Open Graph Description: Version: 2.1.4 interface None { hasValue: false; } interface Some { hasValue: true; value: any; } var x: None | Some = { hasValue: false, value: [], } Expected: Excess property error on value in th...
X Description: Version: 2.1.4 interface None { hasValue: false; } interface Some { hasValue: true; value: any; } var x: None | Some = { hasValue: false, value: [], } Expected: Excess property error on value in th...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/12745
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No excess property checks when dealing with tagged unions","articleBody":"Version: 2.1.4\r\n\r\n```ts\r\ninterface None {\r\n hasValue: false;\r\n}\r\n\r\ninterface Some {\r\n hasValue: true;\r\n value: any;\r\n}\r\n\r\nvar x: None | Some = {\r\n hasValue: false,\r\n value: [],\r\n}\r\n```\r\n\r\n**Expected:** Excess property error on `value` in the object literal.\r\n**Actual:** No error.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2016-12-08T04:19:24Z","url":"https://github.com/microsoft/TypeScript/issues/12745"}
| 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:454e3118-c598-2146-56de-63b6ee1f6b98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB36:BBAAA:6A9174:8ED910:6B00D4FC |
| html-safe-nonce | 221d51afe439670f173da5edd4c843817a1fc4eb9c94561b85730affe82ea888 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjM2OkJCQUFBOjZBOTE3NDo4RUQ5MTA6NkIwMEQ0RkMiLCJ2aXNpdG9yX2lkIjoiNDY3Njg2NDMzODM0OTgwNjA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 756246297762f7ab24c17ff73d413fe8dbd0d7ecf40cc017da90ed19cbaf45ee |
| hovercard-subject-tag | issue:194243550 |
| 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/12745/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb3f9a47a0f44842534d98db6c32655b13ebe692fc88923f7932e9b201552691/microsoft/TypeScript/issues/12745 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb3f9a47a0f44842534d98db6c32655b13ebe692fc88923f7932e9b201552691/microsoft/TypeScript/issues/12745 |
| og:image:alt | Version: 2.1.4 interface None { hasValue: false; } interface Some { hasValue: true; value: any; } var x: None | Some = { hasValue: false, value: [], } Expected: Excess property error on value in th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| 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