René's URL Explorer Experiment


Title: Update Pick to use new key remapping in mapped types · Issue #41383 · microsoft/TypeScript · GitHub

Open Graph Title: Update Pick to use new key remapping in mapped types · Issue #41383 · microsoft/TypeScript

X Title: Update Pick to use new key remapping in mapped types · Issue #41383 · microsoft/TypeScript

Description: Search Terms pick omit key remapping Suggestion Update Pick in lib.d.ts to be: type Pick = { [P in keyof T as Extract]: T[P]; }; It is currently defined as: type Pick = { [P in K]: T[P]; ...

Open Graph Description: Search Terms pick omit key remapping Suggestion Update Pick in lib.d.ts to be: type Pick = { [P in keyof T as Extract]: T[P]; }; It is currently defined as: type Pick

X Description: Search Terms pick omit key remapping Suggestion Update Pick in lib.d.ts to be: type Pick<T, K extends keyof T> = { [P in keyof T as Extract<P, K>]: T[P]; }; It is currently defined as: ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update Pick to use new key remapping in mapped types","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the FAQ, especially the \"Common Feature Requests\" section: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\n-->\r\n\r\n## Search Terms\r\n\r\npick omit key remapping\r\n\r\n## Suggestion\r\n\r\nUpdate `Pick` in `lib.d.ts` to be:\r\n```ts\r\ntype Pick\u003cT, K extends keyof T> = {\r\n    [P in keyof T as Extract\u003cP, K>]: T[P];\r\n};\r\n```\r\n\r\nIt is currently defined as:\r\n```ts\r\ntype Pick\u003cT, K extends keyof T> = {\r\n    [P in K]: T[P];\r\n};\r\n```\r\n\r\n## Use Cases\r\n\r\nWith this new definition, typescript can statically analyze the keys, which allows interfaces to extends these types.\r\n\r\n## Examples\r\n\r\n```ts\r\ninterface Base {\r\n    a: number,\r\n    b: string,\r\n    c: boolean,\r\n}\r\n\r\n// Errors: \"An interface can only extend an object type or intersection of object types with statically known members\"\r\ninterface PickBase0\u003cK extends keyof Base> extends Pick\u003cBase, K> {\r\n    pickedKeys: K\r\n}\r\n\r\ntype Pick1\u003cT, K extends keyof T> = { [L in keyof T as Extract\u003cL, K>]: T[L] }\r\n\r\n// Works\r\ninterface PickBase1\u003cK extends keyof Base> extends Pick1\u003cBase, K> {\r\n    pickedKeys: K\r\n}\r\n```\r\n[Playground Link](https://www.typescriptlang.org/play?ts=next#code/FASwdgLgpgTgZgQwMZQAQCEEGc0G9iqGoIBcqYArgLYBGsANAUTWVhDOAOaNGpJk0A9oIA2UBGEYBfYMAD0c1AFEYMQTCwBuYmFTho8ZGiQTUgsCICeqKAA9oYACY6zNAFZQkEVBEsAHNHU9SFgcLxBzMzhXDy8ffygsVAB3EAgAC1Q2BAgQExErVABrMEFk3SooWlDQEMMUVAAFPKLMHAAGAB4AaRt7KCckoqhLQWi2qAA+PodHJOakIs6J+lRu6fxePxaoR26RrDJu4BlgXwCmloBGToAVVd67WaGRsdRb6YBeVFxUAG0ADLBYqvaK3YhJJT2GDICCdAEPSYAXTIt0BSNQpwUqAA6uoilhagZEA0Fq1sFAbo9+oMQaNxhTpk8BnNLosbis1hsmIRtotdvtLIc1idgEA)\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","author":{"url":"https://github.com/tjjfvi","@type":"Person","name":"tjjfvi"},"datePublished":"2020-11-03T17:42:37Z","url":"https://github.com/microsoft/TypeScript/issues/41383"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5961f74a-aec7-62cc-3f8b-4dfd1c169171
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF82:33D24F:292D99B:34E09DA:6B01B042
html-safe-nonce752b170878573dfa1b918f4148c7bfb88c2302a0fecf45300006a44d5e4c1052
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjgyOjMzRDI0RjoyOTJEOTlCOjM0RTA5REE6NkIwMUIwNDIiLCJ2aXNpdG9yX2lkIjoiNzYzMDA5Njc2Mjc3NDA3MzQxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace5f1993ecd665e2fa9d0bf944657f63e53d8df699ea450054d48874083db07a2
hovercard-subject-tagissue:735517116
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/41383/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4d8abe643ce03dd5073cc4488a4faa77e6bda4a7d5ae68ad012040806e804d38/microsoft/TypeScript/issues/41383
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4d8abe643ce03dd5073cc4488a4faa77e6bda4a7d5ae68ad012040806e804d38/microsoft/TypeScript/issues/41383
og:image:altSearch Terms pick omit key remapping Suggestion Update Pick in lib.d.ts to be: type Pick = { [P in keyof T as Extract]: T[P]; }; It is currently defined as: type Pick
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametjjfvi
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/41383#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F41383
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%2F41383
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/41383
Reloadhttps://github.com/microsoft/TypeScript/issues/41383
Reloadhttps://github.com/microsoft/TypeScript/issues/41383
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/41383
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/41383
Update Pick to use new key remapping in mapped typeshttps://github.com/microsoft/TypeScript/issues/41383#top
Experimentation NeededSomeone needs to try this out to see what happenshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experimentation%20Needed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/tjjfvi
T6 (tjjfvi)https://github.com/tjjfvi
on Nov 3, 2020https://github.com/microsoft/TypeScript/issues/41383#issue-735517116
Playground Linkhttps://www.typescriptlang.org/play?ts=next#code/FASwdgLgpgTgZgQwMZQAQCEEGc0G9iqGoIBcqYArgLYBGsANAUTWVhDOAOaNGpJk0A9oIA2UBGEYBfYMAD0c1AFEYMQTCwBuYmFTho8ZGiQTUgsCICeqKAA9oYACY6zNAFZQkEVBEsAHNHU9SFgcLxBzMzhXDy8ffygsVAB3EAgAC1Q2BAgQExErVABrMEFk3SooWlDQEMMUVAAFPKLMHAAGAB4AaRt7KCckoqhLQWi2qAA+PodHJOakIs6J+lRu6fxePxaoR26RrDJu4BlgXwCmloBGToAVVd67WaGRsdRb6YBeVFxUAG0ADLBYqvaK3YhJJT2GDICCdAEPSYAXTIt0BSNQpwUqAA6uoilhagZEA0Fq1sFAbo9+oMQaNxhTpk8BnNLosbis1hsmIRtotdvtLIc1idgEA
TypeScript's Design Goalshttps://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Experimentation NeededSomeone needs to try this out to see what happenshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experimentation%20Needed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Nov 11, 2020https://github.com/microsoft/TypeScript/issues/41383#event-3985665429
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Nov 11, 2020https://github.com/microsoft/TypeScript/issues/41383#issuecomment-725713916
https://github.com/tjjfvi
T6 (tjjfvi)https://github.com/tjjfvi
on Nov 12, 2020https://github.com/microsoft/TypeScript/issues/41383#issuecomment-725757550
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/tjjfvi
T6 (tjjfvi)https://github.com/tjjfvi
on Nov 12, 2020https://github.com/microsoft/TypeScript/issues/41383#issuecomment-725757728
https://github.com/bfricka
Brian Frichette (bfricka)https://github.com/bfricka
on Mar 24, 2021https://github.com/microsoft/TypeScript/issues/41383#issuecomment-806074890
here's a playground examplehttps://www.typescriptlang.org/play?target=7#code/C4TwDgpgBAShC2B7AbhAkgOwCYQB4B4AVAPigF4oBvAWACgoGoBtABSgEsMoBrCERAGZRCUAIYBnKOOAAnTgHMoeYBGyS2AfigYIqGVABc2gK7wARhH3LVWdVC069hqCwC6Rwq1d0AvnTqgkFAAguRUdACQTLwgRtJyGPLuYhggkaJGABQAlOSkyIjsWJFmGkYYphYyvv60gdAAwgA2EKI6WKEUcEiomDgEwcQB4I0tbRAdcACOxuwyE2EA8vDswPjNre3BADRQAORme6QAZFRQZuWVllB+tHQAxogY0mJGG+MdYTT0jBlQOXkoMZsBABJwJtsandaI9nsBzm8xltprN5lgvnRGK9-rkyKRgTgwe1IT8GBcoABGEm3OgAelpUAaAAs2vIFFBgEzoIgZDgZLsAO5c+ZQRAreHsSRgCTiBacYCIKDzeCiMCQdH1WAIFDoEG4OkM+6iYyyyRtDjicTGCAAOmGQXeyIgMzmEwAYqJ2E0wt0dX08Phlqt8Dt9odiCczuSKuZrjSYU8XvdEZsJsEUa6sB6vRjaBE-gC8UCQUSISUjFSofboABZUQgCwAIQgwBUMiDa0IuwA0kpcCo1Dw+IIUiBSBRvljWBwuDERyIJFAAKK4e5NYw4fAsHvEZKeNxV2j0qCNkBA8TsznQHQC64xJUIVXq0Xi3a6SwgTnsgU87hm+Sehg1aMkiaYZmiADKxj3PcECWj62q9Hq+B1g2EDNq2lgdiGuwHEckaUAiJixvo8awi8WAph86bOqiExQTBcGSBOmK-FkuL4iW4JYCSWLkpWtA+EAA
https://github.com/tjjfvi
T6 (tjjfvi)https://github.com/tjjfvi
on May 28, 2021https://github.com/microsoft/TypeScript/issues/41383#issuecomment-850026336
Brian Frichette (@bfricka)https://github.com/bfricka
#41966https://github.com/microsoft/TypeScript/issues/41966
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/41383
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/41383
Experimentation NeededSomeone needs to try this out to see what happenshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experimentation%20Needed%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.