René's URL Explorer Experiment


Title: Mapped Types with Intersections in React Props Definition, results in type is not assignable error · Issue #27201 · microsoft/TypeScript · GitHub

Open Graph Title: Mapped Types with Intersections in React Props Definition, results in type is not assignable error · Issue #27201 · microsoft/TypeScript

X Title: Mapped Types with Intersections in React Props Definition, results in type is not assignable error · Issue #27201 · microsoft/TypeScript

Description: Search Terms: Mapped Types with React Props incorrect assignable reference Code the intent is for this to be a decorator type Mutate = Readonly< { [K in T]: MutationFn } > const withMutation = < Key ex...

Open Graph Description: Search Terms: Mapped Types with React Props incorrect assignable reference Code the intent is for this to be a decorator type Mutate = Readonly< { [K in T]: Muta...

X Description: Search Terms: Mapped Types with React Props incorrect assignable reference Code the intent is for this to be a decorator type Mutate<T extends string | number | symbol> = Readonly< { [K in...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mapped Types with Intersections in React Props Definition, results in type is not assignable error","articleBody":"**Search Terms:**\r\nMapped Types with React Props\r\nincorrect assignable reference\r\n**Code**\r\nthe intent is for this to be a decorator\r\n```ts \r\ntype Mutate\u003cT extends string | number | symbol> = Readonly\u003c\r\n  { [K in T]: MutationFn }\r\n>\r\nconst withMutation = \u003c\r\n  Key extends string,\r\n  V extends OperationVariables,\r\n  TData extends object = any\r\n>(\r\n  mutationProps: Omit\u003cMutationProps\u003cTData, V>, 'children'>\r\n) => {\r\n  return \u003cP extends object>(\r\n    Component: ComponentType\u003c\r\n      P &\r\n        Mutate\u003cKey> &\r\n        Pick\u003cMutationResult\u003cTData>, 'loading' | 'data' | 'error'>\r\n    >\r\n  ) =>\r\n    class WithMutation extends React.Component\u003cP> {\r\n      render() {\r\n        const key = (mutationProps.mutation\r\n          .definitions[0] as OperationDefinitionNode).name!.value as K\r\n        return (\r\n          \u003cMutation {...mutationProps}>\r\n            {(mutateFn: MutationFn, result: MutationResult\u003cTData>) => {\r\n              const error = result.error! \r\n\r\n              return (\r\n                \u003cComponent\r\n                  loading={result.loading!}\r\n                  error={error}\r\n                  {...result.data}\r\n                  {...this.props}\r\n                  {...{ [key]: mutateFn }}\r\n                />\r\n              )\r\n            }}\r\n          \u003c/Mutation>\r\n        )\r\n      }\r\n    }\r\n}\r\n\r\n// A *self-contained* demonstration of the problem follows...\r\n// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.\r\n```\r\n\r\n\r\n**Expected behavior:**\r\nthe props should be correct, for reference the mapped type behavior produces this I think\r\n```ts\r\ntype Mutate\u003cT extends string | number | symbol> = Readonly\u003c\r\n  { [K in T]: MutationFn }\r\n>\r\n\r\nMutate\u003c'submitForm'> === Readonly\u003c{ submitForm: MutationFn }>\r\n```\r\n\r\nnot actually sure why it's saying the type is not assignable since \r\ntype '((IntrinsicAttributes & IntrinsicClassAttributes\u003cComponent\u003cP & Readonly\u003c{ [K in Key]: MutationFn\u003cany, OperationVariables>; }> & Pick\u003cMutationResult\u003cTData>, \"data\" | \"loading\" | \"error\">, any, any>> & Readonly\u003c...> & Readonly\u003c...>) | (IntrinsicAttributes & ... 2 more ... & { ...; }))[\"loading\"]'\r\n\r\nshould evaluate to boolean.\r\n**Actual behavior:**\r\n![image](https://user-images.githubusercontent.com/7991461/45718295-86f60e00-bb6a-11e8-88e8-3cb4c30bbc02.png)\r\n\r\n**Playground Link:** \u003c!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior -->\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\n","author":{"url":"https://github.com/IllusionElements","@type":"Person","name":"IllusionElements"},"datePublished":"2018-09-18T21:51:58Z","url":"https://github.com/microsoft/TypeScript/issues/27201"}

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:93c9ce5b-b8da-87be-efdb-3737c4709ab7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8990:317608:331E586:40BFB3D:6B01D153
html-safe-noncea6f86d38b0bb1247166988b4c55be96447be4fde63a7b03cef120ec4301b667d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTkwOjMxNzYwODozMzFFNTg2OjQwQkZCM0Q6NkIwMUQxNTMiLCJ2aXNpdG9yX2lkIjoiMzA4OTY0MzIwMjE1MjYxNjI3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac88410a1bdba3633b928f831ae4136924d50b51aab451fd263b9d4c09871d49c8
hovercard-subject-tagissue:361498277
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/27201/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7be5c0f43a9903cc86bbe2ee343b4aedf5949b5c4b66b0a2b7ae4b55b03fd62c/microsoft/TypeScript/issues/27201
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7be5c0f43a9903cc86bbe2ee343b4aedf5949b5c4b66b0a2b7ae4b55b03fd62c/microsoft/TypeScript/issues/27201
og:image:altSearch Terms: Mapped Types with React Props incorrect assignable reference Code the intent is for this to be a decorator type Mutate = Readonly< { [K in T]: Muta...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameIllusionElements
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/27201#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F27201
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%2F27201
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/27201
Reloadhttps://github.com/microsoft/TypeScript/issues/27201
Reloadhttps://github.com/microsoft/TypeScript/issues/27201
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/27201
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/27201
Mapped Types with Intersections in React Props Definition, results in type is not assignable errorhttps://github.com/microsoft/TypeScript/issues/27201#top
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
https://github.com/IllusionElements
Aaron Lo (IllusionElements)https://github.com/IllusionElements
on Sep 18, 2018https://github.com/microsoft/TypeScript/issues/27201#issue-361498277
https://user-images.githubusercontent.com/7991461/45718295-86f60e00-bb6a-11e8-88e8-3cb4c30bbc02.png
https://github.com/dmichon-msft
David Michon (dmichon-msft)https://github.com/dmichon-msft
on Sep 20, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423005117
https://github.com/IllusionElements
Aaron Lo (IllusionElements)https://github.com/IllusionElements
on Sep 20, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423023154
https://github.com/IllusionElements
Aaron Lo (IllusionElements)https://github.com/IllusionElements
on Sep 20, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423262870
Repohttps://www.typescriptlang.org/play/index.html#src=%2F**%20%40format%20*%2F%0D%0Adeclare%20type%20Index%20%3D%20string%20%7C%20number%20%7C%20symbol%0D%0A%0D%0Adeclare%20type%20Mapped%3CKey%20extends%20Index%2C%20T%3E%20%3D%20%7B%20%5BK%20in%20Key%5D%3A%20T%20%7D%0D%0A%0D%0Adeclare%20type%20MutationFn%3CT%2C%20U%3E%20%3D%20any%0D%0A%0D%0Atype%20I%3CP%2C%20TData%2C%20Key%20extends%20string%3E%20%3D%20Readonly%3C%7B%0D%0A%20%20%20children%3F%3A%20any%3B%0D%0A%20%20%7D%3E%20%26%20Readonly%3CP%20%26%20TData%20%26%20%7B%0D%0A%20%20loading%3A%20boolean%2C%0D%0A%20%20error%3A%20Error%0D%0A%20%20%7D%20%26%20Mapped%3CKey%2C%20MutationFn%3Cany%2C%20any%3E%3E%3E%0D%0A%0D%0Atype%20Z%3CP%2C%20D%2C%20K%20extends%20string%3E%20%3D%20I%3CP%2C%20D%2C%20K%3E%5B%22loading%22%5D%0D%0A%0D%0Aconst%20loading%3A%20boolean%20%3D%20true%0D%0A%0D%0Aclass%20Example%3CP%2C%20D%2C%20K%20extends%20string%3E%20%7B%0D%0A%20%20isLoading%3A%20Z%3CP%2C%20D%2C%20K%3E%20%3D%20loading%0D%0A%7D%0D%0A%0D%0A%0D%0Atype%20Other%3CP%2C%20TData%2C%20Key%20extends%20string%3E%20%3D%20Readonly%3C%7B%0D%0A%20%20%20children%3F%3A%20any%3B%0D%0A%20%20%7D%20%26%20P%20%26%20TData%20%26%20%7B%0D%0A%20%20loading%3A%20boolean%2C%0D%0A%20%20error%3A%20Error%0D%0A%7D%20%26%20Mapped%3CKey%2C%20MutationFn%3Cany%2C%20any%3E%3E%3E%0D%0A%0D%0A%0D%0Atype%20Tesr%3CP%2C%20D%2C%20K%20extends%20string%3E%20%3D%20Other%3CP%2C%20D%2C%20K%3E%5B%22loading%22%5D%0D%0A%0D%0Aclass%20Example2%3CP%2C%20D%2C%20K%20extends%20string%3E%20%7B%0D%0A%20%20isLoading%3A%20Tesr%3CP%2C%20D%2C%20K%3E%20%3D%20loading%0D%0A%7D%5D
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
on Sep 21, 2018https://github.com/microsoft/TypeScript/issues/27201#event-1860816970
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Sep 21, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423621912
https://github.com/IllusionElements
Aaron Lo (IllusionElements)https://github.com/IllusionElements
on Sep 21, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423634868
herehttps://www.typescriptlang.org/play/index.html#src=%2F**%20%40format%20*%2F%0D%0Adeclare%20type%20Index%20%3D%20string%20%7C%20number%20%7C%20symbol%0D%0A%0D%0Adeclare%20type%20Mapped%3CKey%20extends%20Index%2C%20T%3E%20%3D%20%7B%20%5BK%20in%20Key%5D%3A%20T%20%7D%0D%0A%0D%0Adeclare%20type%20MutationFn%3CT%2C%20U%3E%20%3D%20any%0D%0A%0D%0Atype%20I%3CP%2C%20TData%2C%20Key%20extends%20string%3E%20%3D%20Readonly%3C%7B%0D%0A%20%20%20children%3F%3A%20any%3B%0D%0A%20%20%7D%3E%20%26%20Readonly%3CP%20%26%20TData%20%26%20%7B%0D%0A%20%20loading%3A%20boolean%2C%0D%0A%20%20error%3A%20Error%0D%0A%20%20%7D%20%26%20Mapped%3CKey%2C%20MutationFn%3Cany%2C%20any%3E%3E%3E%0D%0A%0D%0Atype%20Z%3CP%2C%20D%2C%20K%20extends%20string%3E%20%3D%20I%3CP%2C%20D%2C%20K%3E%5B%22loading%22%5D%0D%0A%0D%0Aconst%20loading%3A%20boolean%20%3D%20true%0D%0A%0D%0Aclass%20Example%3CP%2C%20D%2C%20K%20extends%20string%3E%20%7B%0D%0A%20%20isLoading%3A%20Z%3CP%2C%20D%2C%20K%3E%20%3D%20loading%0D%0A%7D%0D%0A%0D%0A%0D%0Atype%20Other%3CP%2C%20TData%2C%20Key%20extends%20string%3E%20%3D%20Readonly%3C%7B%0D%0A%20%20%20children%3F%3A%20any%3B%0D%0A%20%20%7D%20%26%20P%20%26%20TData%20%26%20%7B%0D%0A%20%20loading%3A%20boolean%2C%0D%0A%20%20error%3A%20Error%0D%0A%7D%20%26%20Mapped%3CKey%2C%20MutationFn%3Cany%2C%20any%3E%3E%3E%0D%0A%0D%0A%0D%0Atype%20Tesr%3CP%2C%20D%2C%20K%20extends%20string%3E%20%3D%20Other%3CP%2C%20D%2C%20K%3E%5B%22loading%22%5D%0D%0A%0D%0Aclass%20Example2%3CP%2C%20D%2C%20K%20extends%20string%3E%20%7B%0D%0A%20%20isLoading%3A%20Tesr%3CP%2C%20D%2C%20K%3E%20%3D%20loading%0D%0A%7D
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 21, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423693457
https://github.com/IllusionElements
Aaron Lo (IllusionElements)https://github.com/IllusionElements
on Sep 22, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423700163
updated repo herehttps://www.typescriptlang.org/play/index.html#src=%2F**%20%40format%20*%2F%0D%0Atype%20Omit%3CT%2C%20K%20extends%20keyof%20T%3E%20%3D%20Pick%3CT%2C%20Exclude%3Ckeyof%20T%2C%20K%3E%3E%0D%0A%0D%0Atype%20MutationFn%20%3D%20()%20%3D%3E%20string%0D%0A%0D%0Atype%20Mapped%3CKey%20extends%20string%20%7C%20number%20%7C%20symbol%3E%20%3D%20%7B%20%5BK%20in%20Key%5D%3A%20MutationFn%20%7D%0D%0A%0D%0A%0D%0Atype%20I%3CP%2C%20TData%2C%20Key%20extends%20string%3E%20%3D%20Readonly%3C%7B%0D%0A%20%20%20children%3F%3A%20any%3B%0D%0A%20%20%7D%3E%20%26%20Readonly%3CP%20%26%20TData%20%26%20%7B%0D%0A%20%20loading%3A%20boolean%2C%0D%0A%20%20error%3A%20Error%0D%0A%20%20%7D%20%26%20Mapped%3CKey%3E%3E%0D%0A%0D%0A%0D%0Atype%20K%3CP%2CD%3E%20%3D%20I%3CP%2C%20D%2C%20'submitForm'%3E%5B%22loading%22%5D%0D%0A%0D%0Atype%20ExcludeBool%3CT%3E%20%3D%20Exclude%3CT%2C%20%7B%20%5Bkey%3A%20string%5D%3A%20boolean%20%7C%20true%20%7C%20false%20%7D%20%26%20%7B%20%5Bkey%3A%20number%5D%3A%20boolean%20%7C%20boolean%20%7C%20true%20%7C%20false%20%7D%3E%20%0D%0A%0D%0Aconst%20loading%20%3D%20true%0D%0A%0D%0Aclass%20Example%3CP%2C%20D%2C%20O%20extends%20string%3E%20%7B%0D%0A%20%20isLoading%3A%20K%3CExcludeBool%3CP%3E%2C%20ExcludeBool%3CP%3E%3E%20%3D%20loading%0D%0A%7D%0D%0A%0D%0A%0D%0A
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 22, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423701127
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 22, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423701312
https://github.com/dmichon-msft
David Michon (dmichon-msft)https://github.com/dmichon-msft
on Sep 22, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423704673
https://github.com/IllusionElements
Aaron Lo (IllusionElements)https://github.com/IllusionElements
on Sep 22, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423705887
see herehttps://www.typescriptlang.org/play/index.html#src=%2F**%20%40format%20*%2F%0D%0Atype%20Omit%3CT%2C%20K%20extends%20keyof%20T%3E%20%3D%20Pick%3CT%2C%20Exclude%3Ckeyof%20T%2C%20K%3E%3E%0D%0A%0D%0Atype%20MutationFn%20%3D%20()%20%3D%3E%20string%0D%0A%0D%0Atype%20Mapped%3CKey%20extends%20string%20%7C%20number%20%7C%20symbol%3E%20%3D%20%7B%20%5BK%20in%20Key%5D%3A%20MutationFn%20%7D%0D%0A%0D%0A%0D%0Atype%20I%3CP%2C%20TData%2C%20Key%20extends%20string%3E%20%3D%20%7B%0D%0A%20%20%20children%3F%3A%20any%3B%0D%0A%20%20%7D%20%26%20P%20%26%20TData%20%26%20%7B%0D%0A%20%20loading%3A%20boolean%2C%0D%0A%20%20error%3A%20Error%0D%0A%20%20%7D%20%26%20Mapped%3CKey%3E%0D%0A%0D%0A%0D%0Atype%20K%3CP%2CD%3E%20%3D%20I%3CP%2C%20D%2C%20'submitForm'%3E%5B%22loading%22%5D%0D%0A%0D%0Atype%20ExcludeBool%3CT%3E%20%3D%20Exclude%3CT%2C%20Extract%3CT%2C%20true%3E%3E%20%26%20Exclude%3CT%2C%20Extract%3CT%2C%20false%3E%3E%20%0D%0A%0D%0Aconst%20loading%3A%20boolean%20%3D%20true%0D%0A%0D%0Aclass%20Example%3CP%2C%20D%2C%20O%20extends%20string%3E%20%7B%0D%0A%20%20isLoading%3A%20K%3CExcludeBool%3CP%3E%2C%20ExcludeBool%3CP%3E%3E%20%3D%20loading%0D%0A%7D%0D%0A%0D%0A%0D%0A
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 22, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423706143
https://github.com/IllusionElements
Aaron Lo (IllusionElements)https://github.com/IllusionElements
on Sep 22, 2018https://github.com/microsoft/TypeScript/issues/27201#issuecomment-423711027
Aaron Lo (IllusionElements)https://github.com/IllusionElements
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 9, 2020https://github.com/microsoft/TypeScript/issues/27201#event-3423439626
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/27201
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/27201
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%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.