René's URL Explorer Experiment


Title: Version 3.4-dev breaks recursive types · Issue #30188 · microsoft/TypeScript · GitHub

Open Graph Title: Version 3.4-dev breaks recursive types · Issue #30188 · microsoft/TypeScript

X Title: Version 3.4-dev breaks recursive types · Issue #30188 · microsoft/TypeScript

Description: TypeScript Version: 3.4.0-dev.20190302 Search Terms: recursive types I recently published an article about how to create types for curry and ramda. Quite a few people are excited and waiting for me to add these types to DefinitelyTyped. ...

Open Graph Description: TypeScript Version: 3.4.0-dev.20190302 Search Terms: recursive types I recently published an article about how to create types for curry and ramda. Quite a few people are excited and waiting for me...

X Description: TypeScript Version: 3.4.0-dev.20190302 Search Terms: recursive types I recently published an article about how to create types for curry and ramda. Quite a few people are excited and waiting for me...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Version 3.4-dev breaks recursive 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. 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!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  3.4.0-dev.20190302\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** recursive types\r\n\r\n![screenshot from 2019-03-04 16-09-21](https://user-images.githubusercontent.com/18401805/53738453-ea18fa00-3e97-11e9-9ca8-10deb555d3ce.png)\r\n\r\nI recently published an article about how to create types for curry and ramda. Quite a few people are excited and waiting for me to add these types to DefinitelyTyped. But I can't pass the `lint` tests yet.\r\n\r\nTo create these (curry) types, I detail how I make use of recursive types. But TS 3.4.0-dev.20190302 is indeed breaking these types. In the latest stable version (3.3.3333) warnings arise (only) when we recurse more than 45 times. A recursive type then returns `any` if the limit is exceeded (which is nice).\r\n\r\nBut in TS 3.4.0-dev.20190302 it appears that \"Type instantiation is excessively deep and possibly infinite\", which is a **breaking** behaviour. But in fact it is only **possibly** infinite, and this is why the previous behaviour should be preferred. `any` could just be returned anytime that limit has been exceeded, thus stopping the recursion condition.\r\n\r\nHowever, recursive types seem to break only when they are nested. Any idea why @ahejlsberg ?\r\n**By breaking this feature, we cannot expect complex types for curry and other tools from ramda.**\r\n\r\n**Code**\r\nArticle:  https://medium.freecodecamp.org/typescript-curry-ramda-types-f747e99744ab\r\nRepo :   https://github.com/pirix-gh/medium/blob/master/types-curry-ramda/src/index.ts\r\n\r\n**Expected behavior:**\r\nUpdates should not have breaking behaviors\r\n\r\n**Actual behavior:**\r\nBreaking behavior on recursive types\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\nhttps://github.com/Microsoft/TypeScript/issues/29511\r\n","author":{"url":"https://github.com/millsp","@type":"Person","name":"millsp"},"datePublished":"2019-03-02T13:53:43Z","url":"https://github.com/microsoft/TypeScript/issues/30188"}

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:640d9995-edb3-017f-a2d9-a9cef41fff9e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC744:38EE04:5474C2:6FB60C:6B019D9E
html-safe-nonce283b0aa3b0af7dc72d496451ea3b74c80d3cd4caa6b50b0b49030a2e998132db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzQ0OjM4RUUwNDo1NDc0QzI6NkZCNjBDOjZCMDE5RDlFIiwidmlzaXRvcl9pZCI6IjYwMDQ3ODAwMzAxNDI1NTM1MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc5699b5f6b6fbe20da3d18b2f491f9643fbff845b3885373975825d4cf3628e7
hovercard-subject-tagissue:416399563
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/30188/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cd1c95c81a9884b0f61a819262a55c0d28b0ae390f8b15a884a49e96fb60ecd4/microsoft/TypeScript/issues/30188
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cd1c95c81a9884b0f61a819262a55c0d28b0ae390f8b15a884a49e96fb60ecd4/microsoft/TypeScript/issues/30188
og:image:altTypeScript Version: 3.4.0-dev.20190302 Search Terms: recursive types I recently published an article about how to create types for curry and ramda. Quite a few people are excited and waiting for me...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemillsp
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/30188#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F30188
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%2F30188
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/30188
Reloadhttps://github.com/microsoft/TypeScript/issues/30188
Reloadhttps://github.com/microsoft/TypeScript/issues/30188
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/30188
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/30188
Version 3.4-dev breaks recursive typeshttps://github.com/microsoft/TypeScript/issues/30188#top
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%22
https://github.com/millsp
pierre (millsp)https://github.com/millsp
on Mar 2, 2019https://github.com/microsoft/TypeScript/issues/30188#issue-416399563
https://user-images.githubusercontent.com/18401805/53738453-ea18fa00-3e97-11e9-9ca8-10deb555d3ce.png
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
https://medium.freecodecamp.org/typescript-curry-ramda-types-f747e99744abhttps://medium.freecodecamp.org/typescript-curry-ramda-types-f747e99744ab
https://github.com/pirix-gh/medium/blob/master/types-curry-ramda/src/index.tshttps://github.com/pirix-gh/medium/blob/master/types-curry-ramda/src/index.ts
#29511https://github.com/microsoft/TypeScript/issues/29511
Nexthttps://github.com/microsoft/TypeScript/issues/30188?timeline_page=1
pierre (millsp)https://github.com/millsp
on Mar 2, 2019https://github.com/microsoft/TypeScript/issues/30188#event-2175781243
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Mar 4, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-469284062
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Mar 4, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-469285102
https://github.com/millsp
pierre (millsp)https://github.com/millsp
on Mar 4, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-469311201
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Nathan Shively-Sanders (@sandersn)https://github.com/sandersn
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%22
on Mar 7, 2019https://github.com/microsoft/TypeScript/issues/30188#event-2188343176
https://github.com/KSXGitHub
Khải (KSXGitHub)https://github.com/KSXGitHub
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478917352
https://github.com/millsp
pierre (millsp)https://github.com/millsp
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
shinout (shinout)https://github.com/shinout
on Apr 6, 2019https://github.com/microsoft/TypeScript/issues/30188#event-2257326070
fix(type): Reduce the number of type parametershttps://github.com/phenyl/sp2/commit/273926e59fbd1de78d660ba96234aef98195e0a1
273926ehttps://github.com/phenyl/sp2/commit/273926e59fbd1de78d660ba96234aef98195e0a1
https://github.com/remojansen
Remo H. Jansen (remojansen)https://github.com/remojansen
on Apr 9, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-481164780
https://devblogs.microsoft.com/typescript/announcing-typescript-3-4/#breaking-changeshttps://devblogs.microsoft.com/typescript/announcing-typescript-3-4/#breaking-changes
https://github.com/typeofweb
Michał Miszczyszyn (typeofweb)https://github.com/typeofweb
on Apr 9, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-481170776
https://github.com/jmrog
Jason Rogers (jmrog)https://github.com/jmrog
on Apr 12, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-482612364
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 12, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-482656575
https://github.com/jmrog
Jason Rogers (jmrog)https://github.com/jmrog
on Apr 12, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-482658975
herehttps://devblogs.microsoft.com/typescript/announcing-typescript-3-4/#breaking-changes
https://github.com/seems112
seems112https://github.com/seems112
on Apr 18, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-484499108
Gabe (garbles)https://github.com/garbles
on Apr 20, 2019https://github.com/microsoft/TypeScript/issues/30188#event-2289784071
Remove another case so that max depth is 6 keys because of microsoft/…https://github.com/garbles/useful-types/commit/b5dff85010c00be4aae2aec6f8c09194ae393110
microsoft/…https://github.com/microsoft/TypeScript/issues/30188
b5dff85https://github.com/garbles/useful-types/commit/b5dff85010c00be4aae2aec6f8c09194ae393110
https://github.com/regevbr
Regev Brody (regevbr)https://github.com/regevbr
on Jun 26, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-505963218
https://www.reddit.com/r/typescript/comments/aynx0o/safe_deep_property_access_in_typescripthttps://www.reddit.com/r/typescript/comments/aynx0o/safe_deep_property_access_in_typescript
https://gist.github.com/regevbr/57f3b4d798fb4642eb4a1c6ed667320dhttps://gist.github.com/regevbr/57f3b4d798fb4642eb4a1c6ed667320d
https://github.com/millsp
pierre (millsp)https://github.com/millsp
on Jun 26, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-505970539
Regev Brody (@regevbr)https://github.com/regevbr
ts-toolbelt https://github.com/pirix-gh/ts-toolbelt
https://github.com/regevbr
Regev Brody (regevbr)https://github.com/regevbr
on Jun 26, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-505984508
https://github.com/millsp
pierre (millsp)https://github.com/millsp
on Jun 26, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-506030591
Regev Brody (@regevbr)https://github.com/regevbr
https://github.com/regevbr
Regev Brody (regevbr)https://github.com/regevbr
on Jun 26, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-506041815
https://github.com/millsp
pierre (millsp)https://github.com/millsp
on Jun 26, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-506047803
Regev Brody (@regevbr)https://github.com/regevbr
https://github.com/millsp
pierre (millsp)https://github.com/millsp
on Jun 26, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-506059757
ts-toolbelthttps://github.com/pirix-gh/ts-toolbelt
pierre (millsp)https://github.com/millsp
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 26, 2019https://github.com/microsoft/TypeScript/issues/30188#event-2442324900
https://github.com/regevbr
Regev Brody (regevbr)https://github.com/regevbr
on Jun 27, 2019https://github.com/microsoft/TypeScript/issues/30188#issuecomment-506216864
Jaewon Seo (ENvironmentSet)https://github.com/ENvironmentSet
on May 14, 2020https://github.com/microsoft/TypeScript/issues/30188#event-3338091042
Suppress Type instantiation is excessively deep and possibly infinite.https://github.com/ENvironmentSet/welltyped/commit/f0466b3836380893fdeda28b8c17eaf5087881ad
f0466b3https://github.com/ENvironmentSet/welltyped/commit/f0466b3836380893fdeda28b8c17eaf5087881ad
https://github.com/xeptore
mbehboodian (xeptore)https://github.com/xeptore
on Sep 30, 2020https://github.com/microsoft/TypeScript/issues/30188#issuecomment-701158114
https://github.com/PriscilaLSouza
Priscila Souza (PriscilaLSouza)https://github.com/PriscilaLSouza
on Aug 26, 2022https://github.com/microsoft/TypeScript/issues/30188#issuecomment-1228642818
https://user-images.githubusercontent.com/109674791/186940986-a199215c-74e6-424a-bce0-cc75dd2d9244.png
Erik Arvidsson (arv)https://github.com/arv
on Jan 27, 2025https://github.com/microsoft/TypeScript/issues/30188#event-16077440886
fix(zero-schema): Fix an issue with TS2589https://github.com/rocicorp/mono/commit/61ba089f443221e89e36d4d8682c723d52d947da
61ba089https://github.com/rocicorp/mono/commit/61ba089f443221e89e36d4d8682c723d52d947da
fix(zero-schema): Fix an issue with TS2589 (#3620)https://github.com/rocicorp/mono/commit/55b27abedb58a3425ab9172717c9039fc2dad120
#3620https://github.com/rocicorp/mono/pull/3620
55b27abhttps://github.com/rocicorp/mono/commit/55b27abedb58a3425ab9172717c9039fc2dad120
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/30188#event-20415911320
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/30188
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/30188
QuestionAn issue which isn't directly actionable in codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Question%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.