René's URL Explorer Experiment


Title: Unresolved `any` behaves different from `any` · Issue #58960 · microsoft/TypeScript · GitHub

Open Graph Title: Unresolved `any` behaves different from `any` · Issue #58960 · microsoft/TypeScript

X Title: Unresolved `any` behaves different from `any` · Issue #58960 · microsoft/TypeScript

Description: 🔎 Search Terms “unresolved any” 🕗 Version & Regression Information This changed between versions 5.4.5 and 5.5.2 ⏯ Playground Link https://www.typescriptlang.org/play/?&filetype=ts#code/PTAEBcE8AcFNQAoCcD20DOoC8oCGA7SAKCjlADEUVtFUMiSZ4BZ...

Open Graph Description: 🔎 Search Terms “unresolved any” 🕗 Version & Regression Information This changed between versions 5.4.5 and 5.5.2 ⏯ Playground Link https://www.typescriptlang.org/play/?&filetype=ts#code/PTAEBcE8AcF...

X Description: 🔎 Search Terms “unresolved any” 🕗 Version & Regression Information This changed between versions 5.4.5 and 5.5.2 ⏯ Playground Link https://www.typescriptlang.org/play/?&filetype=ts#code/PTA...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unresolved `any` behaves different from `any`","articleBody":"### 🔎 Search Terms\n\n_“unresolved any”_\n\n### 🕗 Version & Regression Information\n\n- This changed between versions 5.4.5 and 5.5.2\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play/?&filetype=ts#code/PTAEBcE8AcFNQAoCcD20DOoC8oCGA7SAKCjlADEUVtFUMiSZ4BZAEQA0BhFfcWX5Gkw4AFAAZQsAB598AE0wBGUADIKVUAH5QAbwC+oAFzqUASiJA\n\n### 💻 Code\n\n```ts\r\n// type Props = any\r\n\r\ntype MDXContentProps = (0 extends 1 & Props ? {} : Props)\r\n```\r\n\n\n### 🙁 Actual behavior\n\nThe type of `MDXContentProps` is `any`\n\n### 🙂 Expected behavior\n\nThe type of `MDXContentProps` is `{}`\n\n### Additional information about the issue\n\nWhen you hover over a type that doesn’t exist, the editor shows `/*unresolved*/ any`. In TypeScript 5.4, this type was equivalent to `any`. In TypeScript 5.5, it behaves slightly different. This can be seen in the playground by toggling the line `type Props = any` and hovering the `MDXContentProps` type.\r\n\r\nIf an unresolved `any` is assigned to another type, that type becomes equivalent to an unresolved `any`, except the `/*unresolved*/` label is gone when hovering over it.\r\n\r\n---\r\n\r\nI use this pattern in MDX analyzer (https://github.com/mdx-js/mdx-analyzer/blob/vscode-mdx@1.8.8/packages/language-service/lib/virtual-code.js#L96). This allows users to optionally define props for their MDX file. This used to work great, but now everything is just inferred to `any`.\r\n\r\nIf there’s a better way to detect whether a type is defined, I would love to hear about it.","author":{"url":"https://github.com/remcohaszing","@type":"Person","name":"remcohaszing"},"datePublished":"2024-06-21T14:46:51Z","url":"https://github.com/microsoft/TypeScript/issues/58960"}

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:fdf8cd24-18dc-7734-bd74-8074112abe83
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC11E:17FB7:55A43D:6BDFFA:6B010ED8
html-safe-noncee38443c38e0a39693d97089824442dd979317d09ff5ea780b16877b32a3dee79
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTFFOjE3RkI3OjU1QTQzRDo2QkRGRkE6NkIwMTBFRDgiLCJ2aXNpdG9yX2lkIjoiODQ1NzUwOTUxMjEzMDEzNzgxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3f390f8048b11882678061f7543dc7e9a07621f30dfe5ce51a8ca0845059078b
hovercard-subject-tagissue:2366700430
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/58960/issue_layout
twitter:imagehttps://opengraph.githubassets.com/98817d603b95610ae69cfe13572717c37a70f948cdd73dff4bf96a0a5481ee09/microsoft/TypeScript/issues/58960
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/98817d603b95610ae69cfe13572717c37a70f948cdd73dff4bf96a0a5481ee09/microsoft/TypeScript/issues/58960
og:image:alt🔎 Search Terms “unresolved any” 🕗 Version & Regression Information This changed between versions 5.4.5 and 5.5.2 ⏯ Playground Link https://www.typescriptlang.org/play/?&filetype=ts#code/PTAEBcE8AcF...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameremcohaszing
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/58960#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F58960
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%2F58960
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/58960
Reloadhttps://github.com/microsoft/TypeScript/issues/58960
Reloadhttps://github.com/microsoft/TypeScript/issues/58960
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests310 (310)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/58960
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/58960
Unresolved any behaves different from anyhttps://github.com/microsoft/TypeScript/issues/58960#top
Not a DefectThis behavior is one of several equally-correct optionshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Not%20a%20Defect%22
https://github.com/remcohaszing
Remco Haszing (remcohaszing)https://github.com/remcohaszing
on Jun 21, 2024https://github.com/microsoft/TypeScript/issues/58960#issue-2366700430
https://www.typescriptlang.org/play/?&filetype=ts#code/PTAEBcE8AcFNQAoCcD20DOoC8oCGA7SAKCjlADEUVtFUMiSZ4BZAEQA0BhFfcWX5Gkw4AFAAZQsAB598AE0wBGUADIKVUAH5QAbwC+oAFzqUASiJAhttps://www.typescriptlang.org/play/?&filetype=ts#code/PTAEBcE8AcFNQAoCcD20DOoC8oCGA7SAKCjlADEUVtFUMiSZ4BZAEQA0BhFfcWX5Gkw4AFAAZQsAB598AE0wBGUADIKVUAH5QAbwC+oAFzqUASiJA
https://github.com/mdx-js/mdx-analyzer/blob/vscode-mdx@1.8.8/packages/language-service/lib/virtual-code.js#L96https://github.com/mdx-js/mdx-analyzer/blob/vscode-mdx@1.8.8/packages/language-service/lib/virtual-code.js#L96
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Not a DefectThis behavior is one of several equally-correct optionshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Not%20a%20Defect%22
on Jun 21, 2024https://github.com/microsoft/TypeScript/issues/58960#event-13245902350
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jun 21, 2024https://github.com/microsoft/TypeScript/issues/58960#issuecomment-2183259485
https://github.com/so1ve
Ray (so1ve)https://github.com/so1ve
on Jun 21, 2024https://github.com/microsoft/TypeScript/issues/58960#issuecomment-2183336084
https://github.com/uhyo
uhyo (uhyo)https://github.com/uhyo
on Jun 22, 2024https://github.com/microsoft/TypeScript/issues/58960#issuecomment-2183629636
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Jun 22, 2024https://github.com/microsoft/TypeScript/issues/58960#issuecomment-2183887474
the diffhttps://github.com/microsoft/TypeScript/compare/ddf43cd0e0091057254b1fcfcaf880140dfb7ea1...cffc425ad75bd7b1298abb78ce09337d08cc94b9
#58610https://github.com/microsoft/TypeScript/pull/58610
https://github.com/remcohaszing
Remco Haszing (remcohaszing)https://github.com/remcohaszing
on Jun 22, 2024https://github.com/microsoft/TypeScript/issues/58960#issuecomment-2184027378
playgroundhttps://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgGJwDYYEaINbIDeAUMmcvFrgngFzIDOYUoA5sQL7HFgCeADigAKUCDGiiAJsgC8yOCF7cIAD34B7KGGR9ByAOoLI0uQDd1waasghJDZCLESI0gPxpMOfMnqPxUKWIAeiDyMPIAPVdiIA
Remco Haszing (remcohaszing)https://github.com/remcohaszing
on Jun 23, 2024https://github.com/microsoft/TypeScript/issues/58960#event-13256992373
Fix compatibility with TypeScript 5.5https://github.com/mdx-js/mdx-analyzer/commit/63c18ece558e76138ed44bbbf3fa61fc6115af49
63c18echttps://github.com/mdx-js/mdx-analyzer/commit/63c18ece558e76138ed44bbbf3fa61fc6115af49
Fix compatibility with TypeScript 5.5https://github.com/mdx-js/mdx-analyzer/commit/b24bf2d813af194752b75c4b129086bae6052839
b24bf2dhttps://github.com/mdx-js/mdx-analyzer/commit/b24bf2d813af194752b75c4b129086bae6052839
Fix compatibility with TypeScript 5.5 (#450)https://github.com/mdx-js/mdx-analyzer/commit/976773851618fcc2018671d56d7902216873ceb6
#450https://github.com/mdx-js/mdx-analyzer/pull/450
9767738https://github.com/mdx-js/mdx-analyzer/commit/976773851618fcc2018671d56d7902216873ceb6
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
on Jun 25, 2024https://github.com/microsoft/TypeScript/issues/58960#issuecomment-2187747803
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
not plannedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Jun 25, 2024https://github.com/microsoft/TypeScript/issues/58960#event-13273704021
https://github.com/remcohaszing
Remco Haszing (remcohaszing)https://github.com/remcohaszing
on Jun 25, 2024https://github.com/microsoft/TypeScript/issues/58960#issuecomment-2188155657
https://www.typescriptlang.org/play/?#code/PTAECUFMHMFcBsCGAnUBBAdgTwFABcsAHSdUAXlEWxxFABEB7SAZwDkG8BRADwEtm8ofqEA4BMABUoWBmQsG8AG6QAJqHFgqWQLgEoBhlAALBkuQAaUACNIBxEuahlvAGZPIsjIKfIGAW0rUCYlAAIXJ6JjYOHn48GjAAYSF7XgxHARS4fhsLeBIvX1FNHT1DYzdzKxs7UHheAGsSYPwiEkSKUIAyf1w40HibDGgSPAMSXLw8N1I8BhDdVESZ3QtmNyVKUABjAaHdJ1AR4Zb6ZqC6MIAGUEhuSdT7AEZQLrRQAH4D5FgSAC5QJ0Q8FWvVAoAAem8cEAhttps://www.typescriptlang.org/play/#code/PTAECUFMHMFcBsCGAnUBBAdgTwFABcsAHSdUAXlEWxxFABEB7SAZwDkG8BRADwEtm8ofqEA4BMABUoWBmQsG8AG6QAJqHFgqWQLgEoBhlAALBkuQAaUACNIBxEuahlvAGZPIsjIKfIGAW0rUCYlAAIXJ6JjYOHn48GjAAYSF7XgxHARS4fhsLeBIvX1FNHT1DYzdzKxs7UHheAGsSYPwiEkSKUIAyf1w40HibDGgSPAMSXLw8N1I8BhDdVESZ3QtmNyVKUABjAaHdJ1AR4Zb6ZqC6MIAGUEhuSdT7AEZQLrRQAH4D5FgSAC5QJ0Q8FWvVAoAAem8cEA
microsofthttps://github.com/microsoft
on Oct 22, 2025https://github.com/microsoft/TypeScript/issues/58960#event-20419666220
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/58960
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/58960
Not a DefectThis behavior is one of several equally-correct optionshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Not%20a%20Defect%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.