René's URL Explorer Experiment


Title: “Type instantiation is excessively deep and possibly infinite” but only in a large codebase · Issue #34933 · microsoft/TypeScript · GitHub

Open Graph Title: “Type instantiation is excessively deep and possibly infinite” but only in a large codebase · Issue #34933 · microsoft/TypeScript

X Title: “Type instantiation is excessively deep and possibly infinite” but only in a large codebase · Issue #34933 · microsoft/TypeScript

Description: TypeScript Version: 3.7.2, 3.8.0-dev.20191102 (worked in 3.6) Search Terms: Type instantiation is excessively deep and possibly infinite.ts(2589) Mapped types Generics Conditional types Code Note: this issue manifests itself only in our ...

Open Graph Description: TypeScript Version: 3.7.2, 3.8.0-dev.20191102 (worked in 3.6) Search Terms: Type instantiation is excessively deep and possibly infinite.ts(2589) Mapped types Generics Conditional types Code Note: ...

X Description: TypeScript Version: 3.7.2, 3.8.0-dev.20191102 (worked in 3.6) Search Terms: Type instantiation is excessively deep and possibly infinite.ts(2589) Mapped types Generics Conditional types Code Note: ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"“Type instantiation is excessively deep and possibly infinite” but only in a large codebase","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. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\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: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:**  3.7.2, 3.8.0-dev.20191102 (worked in 3.6)\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\n\r\n- Type instantiation is excessively deep and possibly infinite.ts(2589)\r\n- Mapped types\r\n- Generics\r\n- Conditional types\r\n\r\n**Code**\r\n\r\nNote: **this issue manifests itself only in our codebase**. When you run the same code in TypeScript Playground, it seems to be working fine.\r\n\r\nThe snippet is hardly minimal, but I reduced it as much as I could. I recorded [a video](https://streamable.com/pjkrk) where exactly the same code yields an error different than the one in TypeScript Playground. I tried with two versions of TypeScript: `3.7.2` and `3.8.0-dev.20191102`. It worked correctly with `3.6`.\r\n\r\nSince @sheetalkamat and @DanielRosenwasser have access to our repository, you're welcome to have a look at [this PR](https://github.com/unsplash/unsplash-web/pull/4243). Copy-paste the code below anywhere in the project to see the error.\r\n\r\nThe versions of types used:\r\n\r\n- `@types/history@4.7.3`\r\n- `@types/react@16.9.11`\r\n- `@types/react-router-dom@5.1.0`\r\n- `@types/recompose@0.30.7`\r\n\r\n**Note**: Interestingly enough, if you change:\r\n\r\n```diff\r\n- declare const Button: React.FunctionComponent\u003cOmit\u003cProps, never>>;\r\n+ declare const Button: React.FunctionComponent\u003cProps>;\r\n```\r\n\r\nit works again despite the fact `Omit\u003cProps, never>` should be the same as just `Props`.\r\n\r\n\u003cdetails>\r\n\r\n\u003csummary>Source code\u003c/summary>\r\n\r\n```ts\r\nimport { History } from 'history'; // \"4.7.3\"\r\nimport * as React from 'react'; // \"16.9.11\"\r\nimport { LinkProps, RouteComponentProps, withRouter } from 'react-router-dom'; // \"5.1.0\"\r\nimport { getDisplayName } from 'recompose'; // \"0.30.7\"\r\n\r\ndeclare function isDefined\u003cT>(candidate: T | null | undefined): candidate is T;\r\ndeclare function isString(value?: any): value is string;\r\n\r\ntype ObjectOmit\u003cT extends K, K> = Omit\u003cT, keyof K>;\r\n\r\ntype OnClick = NonNullable\u003cReact.ComponentProps\u003c'button'>['onClick']>;\r\n\r\ntype OnClickProp = {\r\n  /** If there is a custom click handler, we must preserve it. */\r\n  onClick?: OnClick;\r\n};\r\n\r\ntype ProvidedProps = OnClickProp;\r\n\r\ntype InputProps = OnClickProp & {\r\n  /** Note: we want this helper to work with all sorts of modals, not just those backed by query\r\n   * parameters (e.g. `/photo/:id/info`), which is why this must accept a full location instead of a\r\n   * `Modal` type.\r\n   * */\r\n  to: Exclude\u003cLinkProps['to'], Function>;\r\n};\r\n\r\nconst buildClickHandler = ({\r\n  to,\r\n  onClick,\r\n  history,\r\n}: InputProps & {\r\n  history: History;\r\n}): OnClick => {\r\n  const navigate = () => {\r\n    // https://github.com/Microsoft/TypeScript/issues/14107\r\n    isString(to) ? history.push(to) : history.push(to);\r\n  };\r\n\r\n  return event => {\r\n    [onClick, navigate].filter(isDefined).forEach(callback => callback(event));\r\n  };\r\n};\r\n\r\n/** See the test for an example of usage. */\r\nexport const enhance = \u003cComposedProps extends ProvidedProps>(\r\n  ComposedComponent: React.ComponentType\u003cComposedProps>,\r\n) => {\r\n  type PassThroughComposedProps = ObjectOmit\u003cComposedProps, ProvidedProps>;\r\n  type OwnProps = InputProps & RouteComponentProps\u003cnever> & PassThroughComposedProps;\r\n  type Props = OwnProps;\r\n\r\n  const displayName = `CreateModalLink(${getDisplayName(ComposedComponent)})`;\r\n\r\n  const ModalLink: React.FunctionComponent\u003cProps> = ({\r\n    to,\r\n    onClick,\r\n\r\n    history,\r\n    // We specify these just to omit them from rest props below\r\n    location,\r\n    match,\r\n    staticContext,\r\n\r\n    ...passThroughComposedProps\r\n  }) => {\r\n    const clickHandler = buildClickHandler({ to, onClick, history });\r\n\r\n    const composedProps: ComposedProps = {\r\n      // Note: this is technically unsafe, since the composed component may have props\r\n      // with names matching the ones we're omitting.\r\n      // https://github.com/microsoft/TypeScript/issues/28884#issuecomment-503540848\r\n      ...((passThroughComposedProps as unknown) as PassThroughComposedProps),\r\n      onClick: clickHandler,\r\n    } as ComposedProps;\r\n\r\n    return \u003cComposedComponent {...composedProps} />;\r\n  };\r\n\r\n  ModalLink.displayName = displayName;\r\n\r\n  return withRouter(ModalLink);\r\n};\r\n\r\ntype Props = React.ComponentPropsWithoutRef\u003c'button'> &\r\n  Required\u003cPick\u003cReact.ComponentPropsWithoutRef\u003c'button'>, 'type'>>;\r\n\r\n/**\r\n * This one errors.\r\n */\r\ndeclare const Button: React.FunctionComponent\u003cOmit\u003cProps, never>>;\r\n\r\n/**\r\n * This one works.\r\n */\r\n// declare const Button: React.FunctionComponent\u003cProps>;\r\n\r\nconst EnhancedButton = enhance(Button);\r\n\r\n/**\r\n * Type instantiation is excessively deep and possibly infinite.ts(2589).\r\n */\r\n() => \u003cEnhancedButton>\u003c/EnhancedButton>;\r\n\r\n\r\n```\r\n\r\n\u003c/details>\r\n\r\n**Expected behavior:**\r\n\r\nI should get a proper error about missing properties (not the one about type instantiation):\r\n\r\n```\r\nType '{}' is missing the following properties from type 'Readonly\u003cPick\u003cOwnProps, \"form\" | \"style\" | \"title\" | \"onClick\" | \"to\" | \"key\" | \"autoFocus\" | \"disabled\" | \"formAction\" | \"formEncType\" | \"formMethod\" | \"formNoValidate\" | \"formTarget\" | ... 252 more ... | \"onTransitionEndCapture\">>': to, type(2739)\r\n```\r\n\r\n**Actual behavior:**\r\n\r\nI'm getting this:\r\n\r\n```\r\nType instantiation is excessively deep and possibly infinite.ts(2589).\r\n```\r\n\r\n**Playground Link:** \u003c!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior -->\r\n\r\n[Playground Link](https://www.typescriptlang.org/play/?jsx=2#code/JYWwDg9gTgLgBAbzgCWAZxtAnnAvnAMyghDgHIALdTKLMgbgChRJY4AqOAQzTgCUAplwDG8IiXJQhohs3DR4SADLAAdgGsACsTBoANPwgBXGAIDCJSKoGqY2iLoMB3YDAp9jpqHkLFSZKREYAFpiEwEoYIATElkWBUQ4AHMBGAARdDAAGy4sADkuEAEfcX8pYUsINAFZRiiBYRypQiNVUWAIVTh0NIECNQEogB4AFQA+AAphLlUo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pTVO3VYqgA)\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\n\r\n- #32735\r\n- #34850","author":{"url":"https://github.com/karol-majewski","@type":"Person","name":"karol-majewski"},"datePublished":"2019-11-06T00:06:49Z","url":"https://github.com/microsoft/TypeScript/issues/34933"}

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:7dcfd295-da1a-ab0c-897d-3c7d83998095
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAE0A:1DC4CC:7DDA0F:A7EA22:6B01AE42
html-safe-nonce4ee9f91ffafb6dc6b2a6bcb45f650a66e25f6d3ab1447e5a4fd7374e3a26084e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTBBOjFEQzRDQzo3RERBMEY6QTdFQTIyOjZCMDFBRTQyIiwidmlzaXRvcl9pZCI6Ijc4MzMwODA2MDY1NTk5NDAxNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac53e846c8441daaf0bd3dbfa00252f6e8cf6f84e39014c2a41f5931fb4105665b
hovercard-subject-tagissue:518141824
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/34933/issue_layout
twitter:imagehttps://opengraph.githubassets.com/372b9d982949e39bfc7b39b9b01f1b9e808a90a041e78ba496cc32412c7ed4a7/microsoft/TypeScript/issues/34933
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/372b9d982949e39bfc7b39b9b01f1b9e808a90a041e78ba496cc32412c7ed4a7/microsoft/TypeScript/issues/34933
og:image:altTypeScript Version: 3.7.2, 3.8.0-dev.20191102 (worked in 3.6) Search Terms: Type instantiation is excessively deep and possibly infinite.ts(2589) Mapped types Generics Conditional types Code Note: ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekarol-majewski
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/34933#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F34933
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%2F34933
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/34933
Reloadhttps://github.com/microsoft/TypeScript/issues/34933
Reloadhttps://github.com/microsoft/TypeScript/issues/34933
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/34933
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/34933
“Type instantiation is excessively deep and possibly infinite” but only in a large codebasehttps://github.com/microsoft/TypeScript/issues/34933#top
https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: check: Big UnionsThe root cause is ultimately that big unions interact poorly with complex structureshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20check%3A%20Big%20Unions%22
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
https://github.com/karol-majewski
Karol Majewski (karol-majewski)https://github.com/karol-majewski
on Nov 6, 2019https://github.com/microsoft/TypeScript/issues/34933#issue-518141824
a videohttps://streamable.com/pjkrk
Sheetal Nandi (@sheetalkamat)https://github.com/sheetalkamat
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
this PRhttps://github.com/unsplash/unsplash-web/pull/4243
Playground Linkhttps://www.typescriptlang.org/play/?jsx=2#code/JYWwDg9gTgLgBAbzgCWAZxtAnnAvnAMyghDgHIALdTKLMgbgChRJY4AqOAQzTgCUAplwDG8IiXJQhohs3DR4SADLAAdgGsACsTBoANPwgBXGAIDCJSKoGqY2iLoMB3YDAp9jpqHkLFSZKREYAFpiEwEoYIATElkWBUQ4AHMBGAARdDAAGy4sADkuEAEfcX8pYUsINAFZRiiBYRypQiNVUWAIVTh0NIECNQEogB4AFQA+AAphLlUo4CiuUwAuOBG4AB84VSMsrI24Vvr+6yiAShXp2fnF4vRVpnrGrmaCVvbO7rQAZRgoNSSJgA3LhZIwCAD8KxmWHOcGBoNuvAwf1USSYjBgWDAxQA8gAjABWDRgOJArlGcAEAA9TLNeABpAz0sZwAC8cFJ5JGBnUAiwEAIcGZ6Mx2I5qjMWWAwnUbLgeU6eR2OTxWQEQ0EQQAdBZ5NZbPZdEMyHiTJhVGQxgBtMidSXS9RkAC6YxFWNxEqlMsNcoQjDgcAA9OxOABJQVuCKI7hwYRGDASRoOuAUGZRNVQZzFEDx+BgKTVKCA24wLUcQP+uB2r3qSHi+0ypi4N1i+yA+aDQ28dk4z0Ow0t4qh1RgExduW9htaHRwABkiErwc4CuWcCcxScM3gbjuFAEWWx3kwa+gspcbm4uzgaAUvAFcBAEAWWX0Wwg8AJubgbiqxTxIl5KI4DxHAAEcwVoSsODgMBnkKVIIl4CYBC1JIywAA0DMAKHfCBAyWeZAzUAgIHQ05nCoYQKE+NcKBwHdeBzDBuGEYQBDAeAuBaK8sggaYYA6Lo1AwIQgPvLgoM4dCAFknxBdDv3dLVJPLStMBWABRKlGiMeohhUDQuxtTBnQMAAxN4BM6V1GGbRhGAqVRmNNYAsiiKdkDTDM5QmP0A0wPRK2rB1AoDKgE1oQLcBWYdRzsHReHnPyU2obAVlQCKsCbWFJxrNkWWSxzmNULh2ySG4f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3ZKbUs68DQJV-h1TwggCDGlNE1Tolo5yVkEOBYAUhhiaAdBqU+5tnnxRjkSn8JhSXkrNFSx25Am6WhsowJc-pOA+zuJ0YoERiBQDQEkoWdQGhNEcfveAAAhAVqgT7anPu8K+HKhjh1vglcGf0IhjDFRK6C0q7zWBPFAdQSrJUVnqt3NVzwNVOW1bq-VZtDWX3xRHB26Iu4aVUFLNiUQdWUq6OySWMw2ITHjeaOR4qQyStWO7YSMAtzABIR8O41I2JzWAMWUxXr2LcFmDBKotjVQ4GImoVwKEYBoAmNUzptSACcpxlUVgmM7FkQwo0xsGOm6yQxAwTpTVO3VYqgA
Conditional types break with property chaining #32735https://github.com/microsoft/TypeScript/issues/32735
This is not for TypeScript but for everybody facing type instantiation too deep #34850https://github.com/microsoft/TypeScript/issues/34850
Nexthttps://github.com/microsoft/TypeScript/issues/34933?timeline_page=1
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Nov 6, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-550102553
https://github.com/karol-majewski
Karol Majewski (karol-majewski)https://github.com/karol-majewski
on Nov 6, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-550305203
AnyhowStephttps://github.com/AnyhowStep
https://github.com/Stianhn
Stian H. Nesbø (Stianhn)https://github.com/Stianhn
on Nov 8, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-551867524
https://github.com/rista404
Nikola Ristić (rista404)https://github.com/rista404
on Nov 8, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-551933717
https://github.com/peterkelly
Peter Kelly (peterkelly)https://github.com/peterkelly
on Nov 11, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-552500444
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Nov 11, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-552521512
#29602https://github.com/microsoft/TypeScript/pull/29602
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
#29511 (comment)https://github.com/microsoft/TypeScript/issues/29511#issuecomment-458620791
https://www.npmjs.com/package/patch-packagehttps://www.npmjs.com/package/patch-package
https://github.com/karol-majewski
Karol Majewski (karol-majewski)https://github.com/karol-majewski
on Nov 11, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-552648380
Stian H. Nesbø (@Stianhn)https://github.com/Stianhn
Nikola Ristić (@rista404)https://github.com/rista404
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Nov 11, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-552663364
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Nov 12, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-552686824
Wesley Wigham (@weswigham)https://github.com/weswigham
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Nov 12, 2019https://github.com/microsoft/TypeScript/issues/34933#event-2789804169
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Wesley Wigham (weswigham)https://github.com/weswigham
on Nov 12, 2019https://github.com/microsoft/TypeScript/issues/34933#event-2789804290
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 3.8.0https://github.com/microsoft/TypeScript/milestone/102
on Nov 12, 2019https://github.com/microsoft/TypeScript/issues/34933#event-2789804345
https://github.com/karol-majewski
Karol Majewski (karol-majewski)https://github.com/karol-majewski
on Nov 12, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-552845277
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/dgieselaar
Dario Gieselaar (dgieselaar)https://github.com/dgieselaar
on Nov 14, 2019https://github.com/microsoft/TypeScript/issues/34933#issuecomment-553955560
https://github.com/elastic/kibana/pull/47188/checks?check_run_id=303150613https://github.com/elastic/kibana/pull/47188/checks?check_run_id=303150613
Tim Roes (@timroes)https://github.com/timroes
elastic/kibana#47188https://github.com/elastic/kibana/pull/47188
elastic/kibana@ef912fchttps://github.com/elastic/kibana/commit/ef912fc12ab95bca7b117a66cadabecc84d9a16a
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
on Mar 4, 2024https://github.com/microsoft/TypeScript/issues/34933#event-12004993372
https://github.com/Charismara
Chris (Charismara)https://github.com/Charismara
on May 7, 2024https://github.com/microsoft/TypeScript/issues/34933#issuecomment-2097820455
https://github.com/Threebow
Threebow (Threebow)https://github.com/Threebow
on Jun 11, 2024https://github.com/microsoft/TypeScript/issues/34933#issuecomment-2161291043
https://github.com/natew
Nate Wienert (natew)https://github.com/natew
on Jun 11, 2024https://github.com/microsoft/TypeScript/issues/34933#issuecomment-2161326913
https://github.com/Threebow
Threebow (Threebow)https://github.com/Threebow
on Jun 11, 2024https://github.com/microsoft/TypeScript/issues/34933#issuecomment-2161375463
Nate Wienert (@natew)https://github.com/natew
TS has stated five years ago in 2019 that they will not expose this option to users because it's an implementation detail of an internal TypeScript mechanism that they may choose to eliminate in the future.https://github.com/microsoft/TypeScript/issues/29511#issuecomment-458620791
Another person has said the same thing, over a year later, in 2020.https://github.com/microsoft/TypeScript/pull/29602#issuecomment-581545268
https://github.com/tran-simon
Simon Tran (tran-simon)https://github.com/tran-simon
on Jun 11, 2024https://github.com/microsoft/TypeScript/issues/34933#issuecomment-2161400974
json-schema-to-tshttps://www.npmjs.com/package/json-schema-to-ts
It's documented in their FAQhttps://github.com/ThomasAribart/json-schema-to-ts/blob/main/documentation/FAQs/i-get-a-type-instantiation-is-excessively-deep-and-potentially-infinite-error-what-should-i-do.md
https://github.com/Xriuk
Xriuk (Xriuk)https://github.com/Xriuk
on Jun 12, 2024https://github.com/microsoft/TypeScript/issues/34933#issuecomment-2162285226
these valueshttps://github.com/microsoft/TypeScript/issues/34933#issuecomment-552500444
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
on Jul 26, 2024https://github.com/microsoft/TypeScript/issues/34933#event-13666346271
https://github.com/vipcxj
vipcxjhttps://github.com/vipcxj
on Mar 13, 2025https://github.com/microsoft/TypeScript/issues/34933#issuecomment-2719710058
https://github.com/ChapelStudios
ChapelStudioshttps://github.com/ChapelStudios
on Oct 18, 2025https://github.com/microsoft/TypeScript/issues/34933#issuecomment-3418746640
Byron (byronogis)https://github.com/byronogis
on Nov 1, 2025https://github.com/microsoft/TypeScript/issues/34933#event-20653247878
fix: avoid Type instantiation is excessively deep and possibly infinitehttps://github.com/byronogis/astro-friday/commit/02cf6e533e84a0df5150431511b560c89afdda52
02cf6e5https://github.com/byronogis/astro-friday/commit/02cf6e533e84a0df5150431511b560c89afdda52
Byron (byronogis)https://github.com/byronogis
on Nov 13, 2025https://github.com/microsoft/TypeScript/issues/34933#event-20904303582
fix: avoid Type instantiation is excessively deep and possibly infinitehttps://github.com/byronogis/astro-friday/commit/0befba3eebabde62e76a1c4ac20d7f8e2f04a6df
0befba3https://github.com/byronogis/astro-friday/commit/0befba3eebabde62e76a1c4ac20d7f8e2f04a6df
DukeDeSouth (DukeDeSouth)https://github.com/DukeDeSouth
on Feb 7, 2026https://github.com/microsoft/TypeScript/issues/34933#event-22615746628
Optimize distributive conditional type instantiation for trivial exte…https://github.com/DukeDeSouth/typescript-go/commit/0d65e6cb8469a94f19fcb7a84f1c948637fbb3d1
https://docs.github.com/articles/closing-issues-via-commit-messages
0d65e6chttps://github.com/DukeDeSouth/typescript-go/commit/0d65e6cb8469a94f19fcb7a84f1c948637fbb3d1
Jake Bailey (jakebailey)https://github.com/jakebailey
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Aug 20, 2026https://github.com/microsoft/TypeScript/issues/34933#event-29770195833
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/34933
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/34933
Wesley Wigham (weswigham)https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: check: Big UnionsThe root cause is ultimately that big unions interact poorly with complex structureshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20check%3A%20Big%20Unions%22
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
TypeScript 5.7.0https://github.com/microsoft/TypeScript/milestone/208
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.