René's URL Explorer Experiment


Title: Google feedback on TS 5.5-beta · Issue #58685 · microsoft/TypeScript · GitHub

Open Graph Title: Google feedback on TS 5.5-beta · Issue #58685 · microsoft/TypeScript

X Title: Google feedback on TS 5.5-beta · Issue #58685 · microsoft/TypeScript

Description: Acknowledgement I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. Comment This GitHub issue contains feedback on the TS 5.5-beta release from the team that is responsi...

Open Graph Description: Acknowledgement I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. Comment This GitHub issue contains feedback on the TS 5.5-bet...

X Description: Acknowledgement I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. Comment This GitHub issue contains feedback on the TS 5.5...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Google feedback on TS 5.5-beta","articleBody":"### Acknowledgement\n\n- [X] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.\n\n### Comment\n\nThis GitHub issue contains feedback on the TS 5.5-beta release from the team\r\nthat is responsible for keeping Google's internal software working with the\r\nlatest version of TypeScript.\r\n\r\n## Executive summary\r\n\r\n*   We do not expect to have significant difficulty in upgrading Google to TS\r\n    5.5.\r\n*   Some changes to our TypeScript code are required to make it compile with TS\r\n    5.5.\r\n*   Detail sections below explain the changes to our code we expect to make to\r\n    unblock the upgrade.\r\n\r\n## Impact summary\r\n\r\nChange description                 | Announced | Libraries affected\r\n---------------------------------- | --------: | -----------------:\r\nInferred type predicates           | yes       | 0.018%\r\nTemplate literal types + enums     | no        | 0.011%\r\nRegular expression syntax checking | yes       | 0.007%\r\nConst indexed accesses             | yes       | 0.003%\r\nlib/d.ts changes                   | yes       | 0.003%\r\nIsolatedModules string             | no        | 0.003%\r\n\r\nThe **Announced** column indicates whether we were able to connect the observed\r\nchange with a section in the\r\n[TS5.5-beta announcement](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4-beta/).\r\n\r\nThe following sections give more detailed explanations of the changes listed\r\nabove.\r\n\r\n## Changes which were announced\r\n\r\n### lib/d.ts Changes\r\n\r\nWe support the typing improvements. Generally it's clear what's changing and the\r\nchanges seems minimal this time.\r\n\r\nFor the TSC changes, we expect to fix our codebase to comply to the new API and\r\nfor other typing changes, we expect to `// @ts-ignore` to silence the errors.\r\n\r\n### Inferred type predicates\r\n\r\nhttps://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#inferred-type-predicates\r\n\r\nWe support this change. We expect to `// @ts-ignore` to silence new errors.\r\n\r\nThe only downside is a few targets broken by unwanted narrowing, but we plan to\r\neither suppress with `@ts-ignore` or add an explicit type declaration.\r\n\r\nHere's an example of the kind of working code that broke:\r\n\r\n```ts\r\ndeclare function getFlagsList(): Flag[];\r\ndeclare function shouldAddA(): boolean;\r\nenum Flag {\r\n    A,\r\n    B,\r\n    C\r\n}\r\n// Type changes between 5.4.2 and 5.5-beta.\r\nconst flags = getFlagsList()\r\n  .filter((f) => f !== Flag.A);\r\nif (shouldAddA()) {\r\n    // Error in 5.5-beta:\r\n    // Argument of type 'Flag.A' is not assignable to parameter of type\r\n    // 'Flag.B | Flag.C'.\r\n    flags.push(Flag.A);\r\n}\r\n```\r\n\r\n### Regular expression syntax checking\r\n\r\nhttps://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#regular-expression-syntax-checking\r\n\r\nWe support this change. Most breakages were due to code using newer syntax\r\nfeatures not transpiled down to older browsers, and we expect to `@ts-ignore`\r\nthe breakages.\r\n\r\n### Control flow narrowing for const indexed accesses\r\n\r\nhttps://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#control-flow-narrowing-for-constant-indexed-accesses\r\n\r\nWe support this change. We expect to `// @ts-ignore` to silence new errors.\r\n\r\n## Other changes\r\n\r\n### Template literal type + enum\r\n\r\nWe noticed a small change in how templatized template literal types interact\r\nwith string enums.\r\n\r\nTS 5.4.2 :\r\n[playground link](https://www.typescriptlang.org/play/?isolatedModules=true&ts=5.4.5#code/FAegVGAEBKCmAOAnWBnWA7ALiymAWskGArgLaQBuAhgDbGED2ikVkKmiAlugOaQDuiKvHiwAJpVr1IDAGa4CRdGQB0kMCGCwAHvCaZcAT1GQAostLiAyh248APABUi2zBjE52XXgD5IAXkgAAwASAG9HAF8ggG5gLQtIADEGBkgw4EhIAA0AyABybXyAGkzIAE08-MN84EjgIKDgAGMGdHZIbQAuMwtrW157FIY-QOGVbJjIEBABJgBrFGLIdDTYREQmFraOwx7zMn7vB2HRgpqpmbnERchuSEcrSABWFQAWFWfIACNiA1WDI8Xp8VAAGAC031gmCowCAA)\r\n\r\nTS 5.5 :\r\n[playground link](https://www.typescriptlang.org/play/?isolatedModules=true&ts=5.5.0-beta#code/FAegVGAEBKCmAOAnWBnWA7ALiymAWskGArgLaQBuAhgDbGED2ikVkKmiAlugOaQDuiKvHiwAJpVr1IDAGa4CRdGQB0kMCGCwAHvCaZcAT1GQAostLiAyh248APABUi2zBjE52XXgD5IAXkgAAwASAG9HAF8ggG5gLQtIADEGBkgw4EhIAA0AyABybXyAGkzIAE08-MN84EjgIKDgAGMGdHZIbQAuMwtrW157FIY-QOGVbJjIEBABJgBrFGLIdDTYREQmFraOwx7zMn7vB2HRgpqpmbnERchuSEcrSABWFQAWFWfIACNiA1WDI8Xp8VAAGAC031gmCowCAA)\r\n\r\n```ts\r\n/** Represents the enum value or a string wrapped value of the enum. */\r\nexport type EnumedString\u003cT extends string> = `${T}`;\r\n\r\nenum Foo {\r\n  X = 'x',\r\n  Y = 'y'\r\n}\r\n\r\nconst x: EnumedString\u003cFoo> = Foo.X; // works, no error\r\nconst y: EnumedString\u003cFoo> = 'y'; // works in TS 5.4.5 but not TS 5.5.0-beta\r\n```\r\n\r\nThis is not a blocker as we can switch usages of `EnumedString\u003cFoo>` to `${Foo}`\r\n\r\n### IsolatedModules string\r\n\r\nWe noticed more errors like \"FOO has a string type, but must have syntactically\r\nrecognizable string syntax when 'isolatedModules' is enabled.\" for code like\r\nthis:\r\n\r\n```ts\r\nimport {FOO} from './other_module';\r\n\r\nexport enum E = {\r\n    FOO,\r\n    BAR = 'bar'\r\n};\r\n```\r\n\r\nThese errors seem reasonable and we will `@ts-ignore` to unblock the upgrade.\r\n\r\n### CommonJS module emit bug\r\n\r\nWe are affected by the change in CommonJS module emit bug reported in\r\nhttps://github.com/microsoft/TypeScript/issues/58473. If it's infeasible to fix\r\nby the RC we will add a patch to our internal compiler fork.\r\n","author":{"url":"https://github.com/lauraharker","@type":"Person","name":"lauraharker"},"datePublished":"2024-05-28T22:52:55Z","url":"https://github.com/microsoft/TypeScript/issues/58685"}

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:4ee3c964-90cb-c6e8-02de-009eb326ed52
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD644:1E782F:14CBA1F:1B232F8:6B0543B9
html-safe-nonce22f6ef69de6fe250f7ee4ddb0a67b2d0868f24e905c929c0471c094e9a4b68ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjQ0OjFFNzgyRjoxNENCQTFGOjFCMjMyRjg6NkIwNTQzQjkiLCJ2aXNpdG9yX2lkIjoiNjg0MzkwNjEzMDI3MjY2NjU1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6eb8d58c9e34014faf092f30fda71391b802b44e5f8de1011a806eb8a43fd78c
hovercard-subject-tagissue:2322040946
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/58685/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6e7ec204aaeadbcc61924b77de74e634440f9927605ca61b33a7b4f166d2f994/microsoft/TypeScript/issues/58685
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6e7ec204aaeadbcc61924b77de74e634440f9927605ca61b33a7b4f166d2f994/microsoft/TypeScript/issues/58685
og:image:altAcknowledgement I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. Comment This GitHub issue contains feedback on the TS 5.5-bet...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelauraharker
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
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
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/58685#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F58685
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%2F58685
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/58685
Reloadhttps://github.com/microsoft/TypeScript/issues/58685
Reloadhttps://github.com/microsoft/TypeScript/issues/58685
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests321 (321)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/58685
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/58685
Google feedback on TS 5.5-betahttps://github.com/microsoft/TypeScript/issues/58685#top
Discussionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
https://github.com/lauraharker
Laura Harker (lauraharker)https://github.com/lauraharker
on May 28, 2024https://github.com/microsoft/TypeScript/issues/58685#issue-2322040946
TS5.5-beta announcementhttps://devblogs.microsoft.com/typescript/announcing-typescript-5-4-beta/
https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#inferred-type-predicateshttps://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#inferred-type-predicates
https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#regular-expression-syntax-checkinghttps://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#regular-expression-syntax-checking
https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#control-flow-narrowing-for-constant-indexed-accesseshttps://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/#control-flow-narrowing-for-constant-indexed-accesses
playground linkhttps://www.typescriptlang.org/play/?isolatedModules=true&ts=5.4.5#code/FAegVGAEBKCmAOAnWBnWA7ALiymAWskGArgLaQBuAhgDbGED2ikVkKmiAlugOaQDuiKvHiwAJpVr1IDAGa4CRdGQB0kMCGCwAHvCaZcAT1GQAostLiAyh248APABUi2zBjE52XXgD5IAXkgAAwASAG9HAF8ggG5gLQtIADEGBkgw4EhIAA0AyABybXyAGkzIAE08-MN84EjgIKDgAGMGdHZIbQAuMwtrW157FIY-QOGVbJjIEBABJgBrFGLIdDTYREQmFraOwx7zMn7vB2HRgpqpmbnERchuSEcrSABWFQAWFWfIACNiA1WDI8Xp8VAAGAC031gmCowCAA
playground linkhttps://www.typescriptlang.org/play/?isolatedModules=true&ts=5.5.0-beta#code/FAegVGAEBKCmAOAnWBnWA7ALiymAWskGArgLaQBuAhgDbGED2ikVkKmiAlugOaQDuiKvHiwAJpVr1IDAGa4CRdGQB0kMCGCwAHvCaZcAT1GQAostLiAyh248APABUi2zBjE52XXgD5IAXkgAAwASAG9HAF8ggG5gLQtIADEGBkgw4EhIAA0AyABybXyAGkzIAE08-MN84EjgIKDgAGMGdHZIbQAuMwtrW157FIY-QOGVbJjIEBABJgBrFGLIdDTYREQmFraOwx7zMn7vB2HRgpqpmbnERchuSEcrSABWFQAWFWfIACNiA1WDI8Xp8VAAGAC031gmCowCAA
#58473https://github.com/microsoft/TypeScript/issues/58473
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Discussionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%22
on May 28, 2024https://github.com/microsoft/TypeScript/issues/58685#event-12964249662
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58685#issuecomment-2136289357
Laura Harker (@lauraharker)https://github.com/lauraharker
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58685#issuecomment-2136290345
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
https://www.typescriptlang.org/play/?isolatedModules=true&ts=5.5.0-beta#code/FAegVGAEBKCmAOAnWBnWA7ALiymAWskGArgLaQBuAhgDbGED2ikVkKmiAlugOaQDuiKvHiwAJpVr1IDAGa4CRdGQB0kMCGCwAHvCaZcAT1GQAostLiAyh248APABUi2zBjE52XXgD5IAXkgAAwASAG9HAF8ggG5gLQtIADEGBkgw4EhIAA0AyABybXyAGkzIAE08-MN84EjgIKDgAGMGdHZIbQAuMwtrW157FIY-QOGVbJjIEBABJgBrFGLIdDTYREQmFraOwx7zMn7vB2HRgpqpmbnERchuSEcrSABWFQAWFWfIACNiA1WDI8Xp8VAAGAC031gmCowCAAhttps://www.typescriptlang.org/play/?isolatedModules=true&ts=5.5.0-beta#code/FAegVGAEBKCmAOAnWBnWA7ALiymAWskGArgLaQBuAhgDbGED2ikVkKmiAlugOaQDuiKvHiwAJpVr1IDAGa4CRdGQB0kMCGCwAHvCaZcAT1GQAostLiAyh248APABUi2zBjE52XXgD5IAXkgAAwASAG9HAF8ggG5gLQtIADEGBkgw4EhIAA0AyABybXyAGkzIAE08-MN84EjgIKDgAGMGdHZIbQAuMwtrW157FIY-QOGVbJjIEBABJgBrFGLIdDTYREQmFraOwx7zMn7vB2HRgpqpmbnERchuSEcrSABWFQAWFWfIACNiA1WDI8Xp8VAAGAC031gmCowCAA
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58685#issuecomment-2136408751
#58687https://github.com/microsoft/TypeScript/issues/58687
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on May 29, 2024https://github.com/microsoft/TypeScript/issues/58685#issuecomment-2136507243
#58473https://github.com/microsoft/TypeScript/issues/58473
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 22, 2025https://github.com/microsoft/TypeScript/issues/58685#event-20436249457
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/58685
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/58685
Discussionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Discussion%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.