René's URL Explorer Experiment


Title: add stricter Omit helper type · Issue #30825 · microsoft/TypeScript · GitHub

Open Graph Title: add stricter Omit helper type · Issue #30825 · microsoft/TypeScript

X Title: add stricter Omit helper type · Issue #30825 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - add stricter Omit helper type · Issue #30825 · microsoft/TypeScript

Open Graph Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - add stricter Omit helper type · Issue #30825 · microsoft/TypeScript

X Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - add stricter Omit helper type · Issue #30825 · microsoft/TypeScript

Opengraph URL: https://github.com/microsoft/TypeScript

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add stricter Omit helper type","articleBody":"## Search Terms\r\n\r\nomit strict\r\n\r\n## Suggestion\r\n\r\nThe [new `Omit` type](https://github.com/Microsoft/TypeScript/pull/30552) does not restrict the omitted keys to be keys actually present on the given type. There should be some avenue to express \"omit, but only with keys that are present\", likely either a change to `Omit` or some other `Omit`-like type.\r\n\r\n## Use Cases\r\n\r\nCopied from https://github.com/pelotom/type-zoo/pull/31.\r\n\r\nThe benefit that a stricter type has is primarily:\r\n\r\n- Preventing typos.\r\n- Allowing the compiler to pick up on rename refactors automatically.\r\n\r\nCurrently, permissive Omit acts as a \"barrier\" that prevents rename refactors from passing through, which means that any such refactor generates whole bunches of errors that have to be manually fixed. If the field in question is optional, this can actually introduce bugs.\r\n\r\nAnd some further color:\r\n\r\nI generally use `Omit` with string literal unions (as opposed to, say, generic types that `extends string`), because I often use them for defining higher-order React components that wrap another component _except_ for this one prop. As such, in my use case, I never want a permissive `Omit`.\r\n\r\n## Examples\r\n\r\n```tsx\r\ninterface ImplementationDetailProps {\r\n  publiclyVisibleFoo: Foo;\r\n  filePrivateBar: Bar;\r\n}\r\n\r\nclass ImplementationDetail extends React.Component\u003cImplementationDetailProps> { ... }\r\n\r\nexport type PublicProps = Omit\u003cImplementationDetailProps, \"filePrivateBar\">;\r\n\r\nexport class Public extends React.Component\u003cPublicProps> { ... }\r\n```\r\n\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\r\n\r\n* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code\r\n* [x] This wouldn't change the runtime behavior of existing JavaScript code\r\n* [x] This could be implemented without emitting different JS based on the types of the expressions\r\n* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)\r\n* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).\r\n\r\n","author":{"url":"https://github.com/seansfkelley","@type":"Person","name":"seansfkelley"},"datePublished":"2019-04-09T06:19:33Z","url":"https://github.com/microsoft/TypeScript/issues/30825"}

react-profiling0
react-import-mapreact,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-controllerissues
route-actionshow
fetch-noncev2:79348956-ffbe-8843-7f32-63300129cde1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE014:1DCB8C:24B75C:320058:6B00C0E2
html-safe-nonceccc74d7ef8169f5f1710877ab5e726bcea993129136c97b5da552ca5db55e9ba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDE0OjFEQ0I4QzoyNEI3NUM6MzIwMDU4OjZCMDBDMEUyIiwidmlzaXRvcl9pZCI6IjQ3ODA4MjkwMDQ5MzQ0NjM3MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8faba6de4c025c78744c1b1ab2ba20ef8ef412b958f89882e81a949f6c45591b
hovercard-subject-tagrepository:20929025
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/TypeScript/issues/30825
twitter:imagehttps://opengraph.githubassets.com/3e9d5e188ae5a0307b24d28eeda8bbd7a786bc386dbbc704481e07491eb63f96/microsoft/TypeScript
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3e9d5e188ae5a0307b24d28eeda8bbd7a786bc386dbbc704481e07491eb63f96/microsoft/TypeScript
og:image:altTypeScript is a superset of JavaScript that compiles to clean JavaScript output. - add stricter Omit helper type · Issue #30825 · microsoft/TypeScript
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415
turbo-cache-controlno-cache
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1fee81a280ea86312b69448e261b418189bfd5b5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/30825#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F30825
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F30825
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/30825
Reloadhttps://github.com/microsoft/TypeScript/issues/30825
Reloadhttps://github.com/microsoft/TypeScript/issues/30825
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/30825
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/30825
add stricter Omit helper typehttps://github.com/microsoft/TypeScript/issues/30825#top
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/seansfkelley
Sean Kelley (seansfkelley)https://github.com/seansfkelley
on Apr 9, 2019https://github.com/microsoft/TypeScript/issues/30825#issue-430786288
new Omit typehttps://github.com/Microsoft/TypeScript/pull/30552
pelotom/type-zoo#31https://github.com/pelotom/type-zoo/pull/31
TypeScript's Design Goalshttps://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
Nexthttps://github.com/microsoft/TypeScript/issues/30825?timeline_page=1
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Apr 10, 2019https://github.com/microsoft/TypeScript/issues/30825#event-2266678413
https://github.com/sindresorhus
Sindre Sorhus (sindresorhus)https://github.com/sindresorhus
on Apr 10, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-481775391
#30552https://github.com/microsoft/TypeScript/pull/30552
#30455https://github.com/microsoft/TypeScript/issues/30455
Sean Kelley (@seansfkelley)https://github.com/seansfkelley
Dimitri B. (@BendingBender)https://github.com/BendingBender
Jarek Radosz (@cvx)https://github.com/cvx
https://github.com/nmain
Nicholai Main (nmain)https://github.com/nmain
on Apr 10, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-481780116
https://github.com/seansfkelley
Sean Kelley (seansfkelley)https://github.com/seansfkelley
on Apr 10, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-481797935
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
on Apr 16, 2019https://github.com/microsoft/TypeScript/issues/30825#event-2278183494
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Apr 16, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-483464598
https://github.com/sindresorhus
Sindre Sorhus (sindresorhus)https://github.com/sindresorhus
on Apr 16, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-483517613
https://github.com/SamVerschueren
Sam Verschueren (SamVerschueren)https://github.com/SamVerschueren
on Apr 17, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-483954049
https://github.com/andyfleming
Andy Fleming (andyfleming)https://github.com/andyfleming
on May 17, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-493560300
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 17, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-493576978
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 17, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-493579128
https://github.com/seansfkelley
Sean Kelley (seansfkelley)https://github.com/seansfkelley
on May 17, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-493602772
an earlier commenthttps://github.com/Microsoft/TypeScript/issues/30825#issuecomment-481797935
type-zoo's OmitStricthttps://github.com/pelotom/type-zoo/blob/cfe0416bb0f8af4162f824faa6ba5b10810e908f/types/index.d.ts#L15
https://github.com/andyfleming
Andy Fleming (andyfleming)https://github.com/andyfleming
on May 17, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-493605690
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://user-images.githubusercontent.com/721038/57957325-c2d7a380-78b0-11e9-903e-193b68f6d167.png
https://user-images.githubusercontent.com/721038/57957330-c66b2a80-78b0-11e9-8970-3300d2c5ce0f.png
stats from npmtrends.comhttps://www.npmtrends.com/type-fest-vs-ts-essentials-vs-type-zoo-vs-typelevel-ts-vs-typical-vs-typepark
https://github.com/andyfleming
Andy Fleming (andyfleming)https://github.com/andyfleming
on May 17, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-493607104
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Sindre Sorhus (sindresorhus)https://github.com/sindresorhus
on Jul 5, 2019https://github.com/microsoft/TypeScript/issues/30825#event-2462917562
Ban the `Omit` typehttps://github.com/xojs/eslint-config-xo-typescript/commit/4fc48d2a102674712f43727f8eed48f34aa41f25
4fc48d2https://github.com/xojs/eslint-config-xo-typescript/commit/4fc48d2a102674712f43727f8eed48f34aa41f25
https://github.com/whatisaphone
whatisaphone (whatisaphone)https://github.com/whatisaphone
on Jul 29, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-516050608
https://github.com/G-Rath
Gareth Jones (G-Rath)https://github.com/G-Rath
on Aug 21, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523396315
WEB-40482https://youtrack.jetbrains.com/issue/WEB-40482
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Aug 21, 2019https://github.com/microsoft/TypeScript/issues/30825#event-2574579625
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Aug 21, 2019https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 21, 2019https://github.com/microsoft/TypeScript/issues/30825#event-2574646223
https://github.com/seansfkelley
Sean Kelley (seansfkelley)https://github.com/seansfkelley
on Aug 12, 2020https://github.com/microsoft/TypeScript/issues/30825#issuecomment-673002409
Playground Linkhttps://www.typescriptlang.org/play#code/C4TwDgpgBA8gtgS2AZWAJwQY2AHgCoA0UA0lBAB7AQB2AJgM5QDWEIA9gGZR4B8UAvNzKUaDKAENqIKAH4oABSxN8RAKLlMAGwCutCDhbsuhEjz4AuKNQgA3CGgDcAKCcJqVNB3GZoAMTZsUADeTlBQHAGW9OhuAObOAL4uAPTJUMgImjTAmtJgaGy02j6MtJKx9mzajEEJUKCQAHRODdB4AIwCsIi4-oEAPlDadBAcbhC0RABEAEbiaFM8zk6pUADCbHBgmuJu9ERoELHztFn0jJxQAO4AFuLAUOzaUPlsNgh69YHAN9D0EJg2HR6uBoGB5uI4BAPM1WtwAExdeBIVAYbA4PpQQbDPRjayTKCzeaLZarDZbHZ7KCaBAsR5Va5VTS0YSQbCw0HcADMSJ6qKwuAAckDBdpNDsZlkMQEsUMRniJjxpnMFksUmkAII3Ihw+jiDjQkAcyDcAAsvJRMXRwuoovF4kl+kx2Pl41oSsJETYJKAA
https://github.com/nelson6e65
Nelson Martell (nelson6e65)https://github.com/nelson6e65
on Sep 20, 2020https://github.com/microsoft/TypeScript/issues/30825#issuecomment-695753861
Sean Kelley (@seansfkelley)https://github.com/seansfkelley
https://github.com/devuxer
Dan M. (devuxer)https://github.com/devuxer
on May 20, 2021https://github.com/microsoft/TypeScript/issues/30825#issuecomment-845511130
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/ljharb
Jordan Harband (ljharb)https://github.com/ljharb
on May 20, 2021https://github.com/microsoft/TypeScript/issues/30825#issuecomment-845538341
Dan M. (@devuxer)https://github.com/devuxer
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 20, 2021https://github.com/microsoft/TypeScript/issues/30825#issuecomment-845542090
Jordan Harband (@ljharb)https://github.com/ljharb
Code Hub (codehub0x)https://github.com/codehub0x
on Jul 18, 2021https://github.com/microsoft/TypeScript/issues/30825#event-5035421571
Ban the `Omit` typehttps://github.com/codehub0x/eslint-typescript/commit/83bbd4dcf2f92be6bb1e248d6d4535a7260e6873
83bbd4dhttps://github.com/codehub0x/eslint-typescript/commit/83bbd4dcf2f92be6bb1e248d6d4535a7260e6873
https://github.com/ejose19
ejose19https://github.com/ejose19
on Nov 28, 2021https://github.com/microsoft/TypeScript/issues/30825#issuecomment-980819524
microsofthttps://github.com/microsoft
on Nov 29, 2021https://github.com/microsoft/TypeScript/issues/30825#event-5686172148
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/30825
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/30825
DeclinedThe issue was declined as something which matches the TypeScript visionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Declined%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.