| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff2adad0-d23e-cd2e-c6d4-2d7655f0c3db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B048:175A3:1CF1C5:26D1BD:6AFBE15D |
| html-safe-nonce | 95c0bb5b976305a724028be1093dd81cef82723496b201a919141e2d3c0f41b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDQ4OjE3NUEzOjFDRjFDNToyNkQxQkQ6NkFGQkUxNUQiLCJ2aXNpdG9yX2lkIjoiMTYwMzUyNjI3Nzk3OTY5MzQwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a45eea95ee257baf5bde343d8693e1ea242e084e5d91ea1950c05238aa930cdb |
| hovercard-subject-tag | issue:175290286 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/issues_fragments/issue_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/10725/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5594a25f741cb4b8920414a86b8f9fedc6f6741209f2b099b5202d80c3daf39/microsoft/TypeScript/issues/10725 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5594a25f741cb4b8920414a86b8f9fedc6f6741209f2b099b5202d80c3daf39/microsoft/TypeScript/issues/10725 |
| og:image:alt | TypeScript Version: 2.0@RC Code // Current definition of `Object.freeze`: // freeze(o: T): T; const o = Object.freeze({a: 1}); o.a = 2; // Should throw type error console.log(o); // {a: 1} Expec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spiffytech |
| hostname | github.com |
| expected-hostname | github.com |
| None | 744d4381b1c4dbd6d8736c7d7e5bbe7dc11217584e457a3555020c631764e8ec |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | df859c48a4c8b4c0009c19bb4e82101aacb4b998 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
| Skip to content | https://github.com/microsoft/TypeScript/issues/10725#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F10725 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F10725 |
| Sign up | https://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 |
| Reload | https://github.com/microsoft/TypeScript/issues/10725 |
| Reload | https://github.com/microsoft/TypeScript/issues/10725 |
| Reload | https://github.com/microsoft/TypeScript/issues/10725 |
| microsoft | https://github.com/microsoft |
| TypeScript | https://github.com/microsoft/TypeScript |
| Code | https://github.com/microsoft/TypeScript |
| Issues5k (5k) | https://github.com/microsoft/TypeScript/issues |
| Pull requests334 (334) | https://github.com/microsoft/TypeScript/pulls |
| Actions | https://github.com/microsoft/TypeScript/actions |
| Projects | https://github.com/microsoft/TypeScript/projects |
| Wiki | https://github.com/microsoft/TypeScript/wiki |
| Security and quality | https://github.com/microsoft/TypeScript/security |
| Insights | https://github.com/microsoft/TypeScript/pulse |
| https://github.com/microsoft/TypeScript |
| New issue | https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/10725 |
| New issue | https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/10725 |
| Support readonly type operator to allow correct definition of Object.freeze | https://github.com/microsoft/TypeScript/issues/10725#top |
| In DiscussionNot yet reached consensus | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22 |
| SuggestionAn idea for TypeScript | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22 |
| https://github.com/spiffytech |
| spiffytech (spiffytech) | https://github.com/spiffytech |
| on Sep 6, 2016 | https://github.com/microsoft/TypeScript/issues/10725#issue-175290286 |
| Next | https://github.com/microsoft/TypeScript/issues/10725?timeline_page=1 |
| https://github.com/mhegazy |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| on Sep 6, 2016 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-245033427 |
| https://github.com/mhegazy |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| on Sep 6, 2016 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-245033480 |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| on Sep 6, 2016 | https://github.com/microsoft/TypeScript/issues/10725#event-779733289 |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| SuggestionAn idea for TypeScript | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22 |
| In DiscussionNot yet reached consensus | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22 |
| on Sep 6, 2016 | https://github.com/microsoft/TypeScript/issues/10725#event-779733516 |
| https://github.com/deregtd |
| David de Regt (deregtd) | https://github.com/deregtd |
| on Sep 14, 2016 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-246872305 |
| https://github.com/asfernandes |
| Adriano dos Santos Fernandes (asfernandes) | https://github.com/asfernandes |
| on Feb 5, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-277490786 |
| #12114 | https://github.com/microsoft/TypeScript/pull/12114 |
| https://github.com/deregtd |
| David de Regt (deregtd) | https://github.com/deregtd |
| on Feb 5, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-277494570 |
| https://github.com/asfernandes |
| Adriano dos Santos Fernandes (asfernandes) | https://github.com/asfernandes |
| on Feb 5, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-277517667 |
| David de Regt (@deregtd) | https://github.com/deregtd |
| https://github.com/deregtd |
| David de Regt (deregtd) | https://github.com/deregtd |
| on Feb 5, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-277528801 |
| https://github.com/asfernandes |
| Adriano dos Santos Fernandes (asfernandes) | https://github.com/asfernandes |
| on Feb 5, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-277529256 |
| #11535 | https://github.com/microsoft/TypeScript/issues/11535 |
| https://github.com/deregtd |
| David de Regt (deregtd) | https://github.com/deregtd |
| on Feb 5, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-277529452 |
| https://github.com/asfernandes |
| Adriano dos Santos Fernandes (asfernandes) | https://github.com/asfernandes |
| on Feb 5, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-277531109 |
| #13214 | https://github.com/microsoft/TypeScript/issues/13214 |
| #12424 | https://github.com/microsoft/TypeScript/issues/12424 |
| #12424 | https://github.com/microsoft/TypeScript/issues/12424 |
| https://github.com/deregtd |
| David de Regt (deregtd) | https://github.com/deregtd |
| on Feb 5, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-277531936 |
| https://github.com/gcanti |
| Giulio Canti (gcanti) | https://github.com/gcanti |
| on Mar 29, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-290159469 |
| David de Regt (@deregtd) | https://github.com/deregtd |
| https://github.com/KiaraGrouwstra |
| kiara (KiaraGrouwstra) | https://github.com/KiaraGrouwstra |
| on Dec 24, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-353782678 |
| Alexandre Galays (@AlexGalays) | https://github.com/AlexGalays |
| https://github.com/pelotom |
| Tom Crockett (pelotom) | https://github.com/pelotom |
| on Dec 24, 2017 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-353802406 |
| unnecessary type widening | https://github.com/Microsoft/TypeScript/issues/20195 |
| https://github.com/KiaraGrouwstra |
| kiara (KiaraGrouwstra) | https://github.com/KiaraGrouwstra |
| on Feb 11, 2018 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-364751461 |
| #21316 | https://github.com/microsoft/TypeScript/pull/21316 |
| https://github.com/ikokostya |
| ikokostya | https://github.com/ikokostya |
| on Feb 11, 2018 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-364752002 |
| #21316 | https://github.com/microsoft/TypeScript/pull/21316 |
| https://github.com/alecmev |
| Alec Mev (alecmev) | https://github.com/alecmev |
| on Apr 15, 2018 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-381409874 |
| #21316 | https://github.com/microsoft/TypeScript/pull/21316 |
| Playground. | http://www.typescriptlang.org/play/#src=type%20DeepReadonly%3CT%3E%20%3D%0D%0A%20%20%20%20T%20extends%20any%5B%5D%20%3F%20DeepReadonlyArray%3CT%5Bnumber%5D%3E%20%3A%0D%0A%20%20%20%20T%20extends%20object%20%3F%20DeepReadonlyObject%3CT%3E%20%3A%0D%0A%20%20%20%20T%3B%0D%0A%0D%0Ainterface%20DeepReadonlyArray%3CT%3E%20extends%20ReadonlyArray%3CDeepReadonly%3CT%3E%3E%20%7B%20%7D%0D%0A%0D%0Atype%20DeepReadonlyObject%3CT%3E%20%3D%20T%20%26%0D%0A%20%20%7B%20readonly%20%5BP%20in%20keyof%20T%5D%3A%20DeepReadonly%3CT%5BP%5D%3E%20%7D%3B%0D%0A%0D%0Atype%20Hybrid%20%3D%20%7B%0D%0A%20%20()%3A%20string%3B%0D%0A%20%20prop%3F%3A%20string%3B%0D%0A%7D%3B%0D%0A%0D%0Aconst%20x%3A%20Hybrid%20%3D%20()%20%3D%3E%20'foo'%3B%0D%0Ax.prop%20%3D%20'x'%3B%0D%0A%0D%0Aconst%20y%3A%20Hybrid%20%3D%20()%20%3D%3E%20'bar'%3B%0D%0Ay.prop%20%3D%20'y'%3B%0D%0A%0D%0Ainterface%20A%20%7B%0D%0A%20%20num%3A%20number%3B%0D%0A%20%20func%3A%20()%20%3D%3E%20string%2C%0D%0A%20%20hybrid%3A%20Hybrid%3B%0D%0A%7D%0D%0A%0D%0Atype%20B%20%3D%20DeepReadonly%3CA%3E%3B%0D%0A%0D%0Aconst%20a%3A%20A%20%3D%20%7B%20num%3A%20123%2C%20func%3A%20()%20%3D%3E%20'foo'%2C%20hybrid%3A%20x%20%7D%3B%0D%0Aa.num%20%3D%20456%3B%0D%0Aa.func%20%3D%20()%20%3D%3E%20'bar'%3B%0D%0Aa.func%20%3D%20x%3B%0D%0Aa.func.prop%20%3D%20'a'%3B%20%2F%2F%20Error%0D%0Aa.hybrid%20%3D%20y%3B%0D%0Aa.hybrid.prop%20%3D%20'a'%3B%0D%0A%0D%0Aconst%20b%3A%20B%20%3D%20a%3B%0D%0Ab.num%20%3D%20789%3B%20%2F%2F%20Error%0D%0Ab.func%20%3D%20()%20%3D%3E%20'baz'%3B%20%2F%2F%20Error%0D%0Ab.hybrid%20%3D%20x%3B%20%2F%2F%20Error%0D%0Ab.hybrid.prop%20%3D%20'b'%3B%20%2F%2F%20Error%0D%0A%0D%0Aconst%20c%3A%20A%20%3D%20b%3B%0D%0Ac.num%20%3D%20789%3B%0D%0A |
| swpease | https://github.com/swpease |
| on Jul 1, 2018 | https://github.com/microsoft/TypeScript/issues/10725#event-1710356077 |
| [Game] removed DEFAULT_STATE | https://github.com/swpease/codenames/commit/a2e3ddad7a92a605131347d78cf93fe82d69cfb2 |
| a2e3dda | https://github.com/swpease/codenames/commit/a2e3ddad7a92a605131347d78cf93fe82d69cfb2 |
| https://github.com/karlhorky |
| Karl Horky (karlhorky) | https://github.com/karlhorky |
| on Jul 4, 2019 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-508503688 |
| TypeScript/src/lib/es5.d.ts | https://github.com/microsoft/TypeScript/blob/b36c8a06902ca47da1568167991bd0bc28ced80e/src/lib/es5.d.ts#L195-L211 |
| b36c8a0 | https://github.com/microsoft/TypeScript/commit/b36c8a06902ca47da1568167991bd0bc28ced80e |
| https://github.com/deregtd |
| David de Regt (deregtd) | https://github.com/deregtd |
| on Jul 4, 2019 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-508532212 |
| https://github.com/karlhorky |
| Karl Horky (karlhorky) | https://github.com/karlhorky |
| on Jul 4, 2019 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-508564307 |
| Utility Type | https://www.typescriptlang.org/docs/handbook/utility-types.html |
| #21316 (comment) | https://github.com/microsoft/TypeScript/pull/21316#issue-164138025 |
| spiffytech (@spiffytech) | https://github.com/spiffytech |
| https://github.com/KiaraGrouwstra |
| kiara (KiaraGrouwstra) | https://github.com/KiaraGrouwstra |
| on Jul 5, 2019 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-508726816 |
| Karl Horky (@karlhorky) | https://github.com/karlhorky |
| https://github.com/lazytype |
| lazytype | https://github.com/lazytype |
| on Sep 25, 2020 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-699193070 |
| Daniel Rosenwasser (@DanielRosenwasser) | https://github.com/DanielRosenwasser |
| Ryan Cavanaugh (@RyanCavanaugh) | https://github.com/RyanCavanaugh |
| https://github.com/MartinJohns |
| Martin Johns (MartinJohns) | https://github.com/MartinJohns |
| on Sep 26, 2020 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-699437064 |
| https://github.com/RyanCavanaugh |
| Ryan Cavanaugh (RyanCavanaugh) | https://github.com/RyanCavanaugh |
| on Jul 5, 2022 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-1175538371 |
| Ryan Cavanaugh (RyanCavanaugh) | https://github.com/RyanCavanaugh |
| completed | https://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted |
| on Jul 5, 2022 | https://github.com/microsoft/TypeScript/issues/10725#event-6937759165 |
| https://github.com/ExE-Boss |
| ExE Boss (ExE-Boss) | https://github.com/ExE-Boss |
| on Jul 5, 2022 | https://github.com/microsoft/TypeScript/issues/10725#issuecomment-1175542806 |
| Suggestion: Const contexts for generic type inference #30680 | https://github.com/microsoft/TypeScript/issues/30680 |
| Correctly handle generic functions (e.g.: Object.freeze) passed as callbacks to generic functions (e.g.: Array.prototype.map) #42862 | https://github.com/microsoft/TypeScript/issues/42862 |
| Sign up for free | https://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/10725 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/10725 |
| In DiscussionNot yet reached consensus | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22 |
| SuggestionAn idea for TypeScript | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |