Title: keyof does not include well known symbols · Issue #24622 · microsoft/TypeScript · GitHub
Open Graph Title: keyof does not include well known symbols · Issue #24622 · microsoft/TypeScript
X Title: keyof does not include well known symbols · Issue #24622 · microsoft/TypeScript
Description: TypeScript Version: 2.9.1 Search Terms: keyof well known symbol Code const s = Symbol("s"); interface I { n: number; [s]: string; [Symbol.iterator](): IterableIterator<[string, string]>; } type K = keyof I; type T = I[K]; Expected behavi...
Open Graph Description: TypeScript Version: 2.9.1 Search Terms: keyof well known symbol Code const s = Symbol("s"); interface I { n: number; [s]: string; [Symbol.iterator](): IterableIterator<[string, string]>; } type K =...
X Description: TypeScript Version: 2.9.1 Search Terms: keyof well known symbol Code const s = Symbol("s"); interface I { n: number; [s]: string; [Symbol.iterator](): IterableIterator<[string, string]...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/24622
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"keyof does not include well known symbols","articleBody":"**TypeScript Version:** 2.9.1\r\n\r\n**Search Terms:** \r\nkeyof well known symbol\r\n\r\n**Code**\r\n\r\n```ts\r\nconst s = Symbol(\"s\");\r\n\r\ninterface I {\r\n n: number;\r\n [s]: string;\r\n [Symbol.iterator](): IterableIterator\u003c[string, string]>;\r\n}\r\n\r\ntype K = keyof I;\r\ntype T = I[K];\r\n```\r\n\r\n**Expected behavior:**\r\n```ts\r\ntype K = keyof I; // type K = typeof s | \"n\" | typeof Symbol.iterator\r\ntype T = I[K]; // type T = string | number | () => IterableIterator\u003c[string, string]>\r\n```\r\n\r\n**Actual behavior:**\r\n```ts\r\ntype K = keyof I; // type K = typeof s | \"n\"\r\ntype T = I[K]; // type T = string | number\r\n```","author":{"url":"https://github.com/mgroenhoff","@type":"Person","name":"mgroenhoff"},"datePublished":"2018-06-02T11:46:10Z","url":"https://github.com/microsoft/TypeScript/issues/24622"}
| 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:5b471f2d-3187-63e7-9b42-6b8540d535d5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C200:349FE8:255BD0:34C7F4:6B04694E |
| html-safe-nonce | 7713fd87a1fca71fa654a6b6afdcaacb03388fbc057177250890fb8bc2a4eaf7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjAwOjM0OUZFODoyNTVCRDA6MzRDN0Y0OjZCMDQ2OTRFIiwidmlzaXRvcl9pZCI6IjQ2Njg0NjE4MDI3OTQwMTkxNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3732a74a9d29e0bcfa72e3cfc17c6f4d53e74655064caa3cb3de84a8b401990b |
| hovercard-subject-tag | issue:328737641 |
| 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/24622/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f888330a83d89ac9c17c50b475fe4b681b1bde568ed16f37aaadd75bf487c9ee/microsoft/TypeScript/issues/24622 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f888330a83d89ac9c17c50b475fe4b681b1bde568ed16f37aaadd75bf487c9ee/microsoft/TypeScript/issues/24622 |
| og:image:alt | TypeScript Version: 2.9.1 Search Terms: keyof well known symbol Code const s = Symbol("s"); interface I { n: number; [s]: string; [Symbol.iterator](): IterableIterator<[string, string]>; } type K =... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgroenhoff |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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