Title: negated types via Not operator based on conditional types · Issue #22382 · microsoft/TypeScript · GitHub
Open Graph Title: negated types via Not operator based on conditional types · Issue #22382 · microsoft/TypeScript
X Title: negated types via Not operator based on conditional types · Issue #22382 · microsoft/TypeScript
Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - negated types via Not operator based on conditional types · Issue #22382 · microsoft/TypeScript
Open Graph Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - negated types via Not operator based on conditional types · Issue #22382 · microsoft/TypeScript
X Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - negated types via Not operator based on conditional types · Issue #22382 · microsoft/TypeScript
Opengraph URL: https://github.com/microsoft/TypeScript
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"negated types via Not operator based on conditional types","articleBody":"there is no clear answer as to what extent the conditional types can be used to for modeling negated types,\r\n\r\n- from what i [know](https://github.com/Microsoft/TypeScript/pull/22323#issuecomment-370897477) Not can be just something that flips the `extends` constraint: \r\n```\r\ntype Not\u003cT, U> = T extends U ? never : T;\r\n```\r\n\r\n\r\n- it's not as clear when it comes to a complementary type to the given one `Not\u003cU>` like in https://github.com/Microsoft/TypeScript/issues/22375\r\n\r\nso can negated types (as described above) be modeled with conditional types or it takes some additional machinery?\r\n","author":{"url":"https://github.com/zpdDG4gta8XKpMCd","@type":"Person","name":"zpdDG4gta8XKpMCd"},"datePublished":"2018-03-07T18:19:05Z","url":"https://github.com/microsoft/TypeScript/issues/22382"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:070bfb20-a84b-f088-91df-e9014bf6364c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A808:3A4875:A0F9AD:D7CC0E:6B00EBD8 |
| html-safe-nonce | e828a200b384896b97ffb01542ce2b9c6db148361f89733114ab7d4638a1068a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODA4OjNBNDg3NTpBMEY5QUQ6RDdDQzBFOjZCMDBFQkQ4IiwidmlzaXRvcl9pZCI6IjcxMTE2MjcxOTE0NzcxMzYzNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 641a71b61fd3d39dbb7650817682b45737eb9ac0bcc59e9cab5fe2185e55d464 |
| hovercard-subject-tag | repository:20929025 |
| 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/microsoft/TypeScript/issues/22382 |
| twitter:image | https://opengraph.githubassets.com/1f843281190b2c7429603681aa8d9fd8bf4ea097561976135e9c5d266676c0e0/microsoft/TypeScript |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f843281190b2c7429603681aa8d9fd8bf4ea097561976135e9c5d266676c0e0/microsoft/TypeScript |
| og:image:alt | TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - negated types via Not operator based on conditional types · Issue #22382 · microsoft/TypeScript |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-cache |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width