Title: Design Meeting Notes, 11/20/2015 · Issue #5740 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 11/20/2015 · Issue #5740 · microsoft/TypeScript
X Title: Design Meeting Notes, 11/20/2015 · Issue #5740 · microsoft/TypeScript
Description: Walkthrough of JSX SFCs and IntrinsicAttributes Walkthrough of Salsa JS Class inference Type inference for intersection/union types 👍 Grand unified theory of enums Clear your mind and let's go on a journey of imagination 🌈 ⭐ Imagine a "s...
Open Graph Description: Walkthrough of JSX SFCs and IntrinsicAttributes Walkthrough of Salsa JS Class inference Type inference for intersection/union types 👍 Grand unified theory of enums Clear your mind and let's go on a...
X Description: Walkthrough of JSX SFCs and IntrinsicAttributes Walkthrough of Salsa JS Class inference Type inference for intersection/union types 👍 Grand unified theory of enums Clear your mind and let's go ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/5740
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 11/20/2015","articleBody":"- Walkthrough of JSX SFCs and `IntrinsicAttributes`\n- Walkthrough of Salsa JS Class inference\n- Type inference for intersection/union types\n - :+1:\n- Grand unified theory of enums\n - Clear your mind and let's go on a journey of imagination :rainbow: :star:\n - Imagine a \"string enum\" `enum Direction { North = 'north', South = 'south', ...}`\n - `type NS = Direction.North|Direction.South`\n - What does this declaration actually mean?\n - It produces the following declarations\n - `namespace Direction {` \n - `const North = \"north\"` \u003c- `const North: North` or `const North: Direction` ?\n - `type North = \"north\"`\n - `}`\n - `type Direction = Direction.North | Direction.South | ...`\n - It's not just contextual typing that needs to apply here\n - But we could tweak the rules\n - What should the assignability of strings to string literal types be?\n - This logic applies equally well to numbers!\n - How would we enforce enum branding in this scheme for numeric enums?\n - Add the ability to create 'fresh' types\n - A general solution for many problems\n - We could also enforce structural matching of the names\n - What about `symbol`s?\n - Still no clear approach to handling symbol identity\n - Other primitive types are coming\n - Mostly numbers (`UInt64`, `rational`, `bignum`, `struct`, `vector`, etc...)\n - What should we inline?\n - Maybe `const x = 10` ? With an opt-in\n - Mutable vs immutable widening, e.g.\n - `let x = Direction.North; // x: Direction`\n - `const x = Direction.North; // x: Direction.North`\n - What are the effects in e.g. `function f() { let/const x = Direction.North; return x; }` ?\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2015-11-20T23:14:34Z","url":"https://github.com/microsoft/TypeScript/issues/5740"}
| 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:bdabe0c7-fdbd-50f9-2a4f-9a5416010ff2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFA2:265430:E94E59:14230AC:6AFBF53B |
| html-safe-nonce | 9f3b9c50def8326d270c3eb1684fd88b3bf4660f94ca42922d454b282cd21680 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkEyOjI2NTQzMDpFOTRFNTk6MTQyMzBBQzo2QUZCRjUzQiIsInZpc2l0b3JfaWQiOiI0MTI5MzQ1MDEzNzM5NjgxMDgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1d767124ad058acc8cf3ea6fa0ba813fb97ced3637d3637d00549975cf46663b |
| hovercard-subject-tag | issue:118147173 |
| 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/5740/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5ed473c9f35795b0846e0bcc528dbcdc40df5c1f08cf521623211e66a84606f/microsoft/TypeScript/issues/5740 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5ed473c9f35795b0846e0bcc528dbcdc40df5c1f08cf521623211e66a84606f/microsoft/TypeScript/issues/5740 |
| og:image:alt | Walkthrough of JSX SFCs and IntrinsicAttributes Walkthrough of Salsa JS Class inference Type inference for intersection/union types 👍 Grand unified theory of enums Clear your mind and let's go on a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| 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 | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width