Title: Simple object literal does not work as expected · Issue #27448 · microsoft/TypeScript · GitHub
Open Graph Title: Simple object literal does not work as expected · Issue #27448 · microsoft/TypeScript
X Title: Simple object literal does not work as expected · Issue #27448 · microsoft/TypeScript
Description: typescript@3.2.0-dev.20180929 I prepared following smallest test case (demonstrating the problem I found in my real code) WRONG: interface Low { } interface TransitionLow { native: { margin: string } } const testWRONG: TransitionLow & Lo...
Open Graph Description: typescript@3.2.0-dev.20180929 I prepared following smallest test case (demonstrating the problem I found in my real code) WRONG: interface Low { } interface TransitionLow { native: { margin: string...
X Description: typescript@3.2.0-dev.20180929 I prepared following smallest test case (demonstrating the problem I found in my real code) WRONG: interface Low { } interface TransitionLow { native: { margin: string...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/27448
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Simple object literal does not work as expected","articleBody":"**typescript@3.2.0-dev.20180929**\r\n\r\nI prepared following smallest test case (demonstrating the problem I found in my real code)\r\n\r\n## WRONG:\r\n```\r\ninterface Low {\r\n}\r\n\r\ninterface TransitionLow {\r\n native: { \r\n margin: string \r\n }\r\n}\r\n\r\nconst testWRONG: TransitionLow & Low = {\r\n native: {\r\n margin: '',\r\n color: '', // ==> NO ERROR HERE, \"Object literal may only specify known properties\" expected\r\n }\r\n}\r\n\r\n```\r\n\r\n## CORRECT:\r\n\r\n```\r\nconst testOK: TransitionLow & Low = {\r\n native: {\r\n color: '', // CORRECT ERROR: Object literal may only specify known properties,...\r\n }\r\n}\r\n\r\nconst testOK2: TransitionLow = {\r\n native: {\r\n margin: '',\r\n color: '', // CORRECT ERROR: Object literal may only specify known properties,...\r\n }\r\n}\r\n``` \r\n\r\n\r\n","author":{"url":"https://github.com/PavelPZ","@type":"Person","name":"PavelPZ"},"datePublished":"2018-09-29T08:37:22Z","url":"https://github.com/microsoft/TypeScript/issues/27448"}
| 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:83c9d76c-6c0b-1151-4697-26944eacc616 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEB4:2270F4:DD0C89:126E78E:6B010236 |
| html-safe-nonce | b84d02a1358840c6c83108e08fba27e9b3cd07eb59d0ac89235fed890fb2e9c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUI0OjIyNzBGNDpERDBDODk6MTI2RTc4RTo2QjAxMDIzNiIsInZpc2l0b3JfaWQiOiIyNjM0OTA4NDY2MzA5MzcxNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 39051e1c50f4cce0943378c524af81c8c9a26804756dd7cc7952bb930abdcce9 |
| hovercard-subject-tag | issue:365111814 |
| 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/27448/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1de077260de7d85f9370a0b249b6c99c4332099f48746e06244f66765496d228/microsoft/TypeScript/issues/27448 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1de077260de7d85f9370a0b249b6c99c4332099f48746e06244f66765496d228/microsoft/TypeScript/issues/27448 |
| og:image:alt | typescript@3.2.0-dev.20180929 I prepared following smallest test case (demonstrating the problem I found in my real code) WRONG: interface Low { } interface TransitionLow { native: { margin: string... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PavelPZ |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width