Title: Design Meeting Notes, 2/24/2021 · Issue #42991 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 2/24/2021 · Issue #42991 · microsoft/TypeScript
X Title: Design Meeting Notes, 2/24/2021 · Issue #42991 · microsoft/TypeScript
Description: Removing Compatibility From Object Types to { [x: number]: any } #41660 Kind of strange behavior because numeric index signatures are usually stricter. This was never meant to apply to numeric index signatures. We always had string index...
Open Graph Description: Removing Compatibility From Object Types to { [x: number]: any } #41660 Kind of strange behavior because numeric index signatures are usually stricter. This was never meant to apply to numeric inde...
X Description: Removing Compatibility From Object Types to { [x: number]: any } #41660 Kind of strange behavior because numeric index signatures are usually stricter. This was never meant to apply to numeric inde...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/42991
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 2/24/2021","articleBody":"# Removing Compatibility From Object Types to `{ [x: number]: any }`\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/41660\r\n\r\n* Kind of strange behavior because numeric index signatures are usually stricter.\r\n* This was never meant to apply to numeric index signatures. We always had string index signatures in mind.\r\n* Would this tightening also apply to `symbol`, literals, etc.?\r\n * Currently don't have those index signature types, but we would want the same restrictions.\r\n* Conclusion: seems fine.\r\n\r\n# `const enum`s and `import type`\r\n\r\nhttps://github.com/microsoft/TypeScript/issues/40344#issuecomment-780836777\r\n\r\n* In the beta period of its release, `import type` only allowed symbols in type positions.\r\n* Eventually got feedback that the point was all about emit.\r\n* Soon got feedback about `const enum`s in `import type` because really the emit doesn't rely on it.\r\n * Seemed reasonable as a suggestion, said \"awaiting more feedback\", but got internal feedback about this.\r\n* Under `isolatedModules`, the value no longer inlines.\r\n* Proposal: keep error as-is if `isolatedModules` is on, but otherwise remove the error for using it in `import type`.\r\n* People don't always know that they're supposed to use `isolatedModules`.\r\n * But that's fundamentally the right thing to do when you use another compiler.\r\n* Narrative feels compelling but...\r\n * don't feel super strongly about this.\r\n* Feels strange to extend more special-cases for `const enum`s.\r\n\r\n# Philosophy on ES Modules and the Handbook\r\n\r\n* Handbook talks about different module system types.\r\n* Maybe new handbook talks about CommonJS and ES modules.\r\n * Mention AMD, UMD, System exist, but want to talk about what **most** people will be doing in their day-to-day.\r\n* All of this is part of an umbrella goal for supporting ES modules in Node in general.\r\n* Strive for at least examples of modules in the browser, in Node.\r\n* Syntax, resolution, output?","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2021-02-26T19:58:19Z","url":"https://github.com/microsoft/TypeScript/issues/42991"}
| 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:950b11ec-2dac-bdf5-eec6-0f66f15f9d23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E87C:1D20B7:2A75D3D:35D7115:6B01DCC4 |
| html-safe-nonce | d3ac48af5b30c1a480d5deda358ed002d7e133f895ad78bffb4cf611f044b800 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODdDOjFEMjBCNzoyQTc1RDNEOjM1RDcxMTU6NkIwMURDQzQiLCJ2aXNpdG9yX2lkIjoiNzQyMzUwMjAzNjkwMzI1NTIzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 96322c65ac71c7914e28a79ba71191a411b6c387eec7d897277edec8ce880ee2 |
| hovercard-subject-tag | issue:817625053 |
| 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/42991/issue_layout |
| twitter:image | https://opengraph.githubassets.com/447183e540435efeed7a0890f67b4b6b423224c491e8b501e5515974bfb56df1/microsoft/TypeScript/issues/42991 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/447183e540435efeed7a0890f67b4b6b423224c491e8b501e5515974bfb56df1/microsoft/TypeScript/issues/42991 |
| og:image:alt | Removing Compatibility From Object Types to { [x: number]: any } #41660 Kind of strange behavior because numeric index signatures are usually stricter. This was never meant to apply to numeric inde... |
| 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 | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width