René's URL Explorer Experiment


Title: Method returning index type breaks type interference of union types · Issue #30717 · microsoft/TypeScript · GitHub

Open Graph Title: Method returning index type breaks type interference of union types · Issue #30717 · microsoft/TypeScript

X Title: Method returning index type breaks type interference of union types · Issue #30717 · microsoft/TypeScript

Description: TypeScript Version: 3.4.0-dev.201xxxxx Search Terms: union, index type Code class Test { constructor(public o: Props) {} get(k: K) : Props[K] { return this.o[k]; } } interface A {t: "A";}; int...

Open Graph Description: TypeScript Version: 3.4.0-dev.201xxxxx Search Terms: union, index type Code class Test { constructor(public o: Props) {} get(k: K) : Props[K] { return t...

X Description: TypeScript Version: 3.4.0-dev.201xxxxx Search Terms: union, index type Code class Test<Props extends Object> { constructor(public o: Props) {} get<K extends keyof Props>(k: K) : Props[K...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Method returning index type breaks type interference of union 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.201xxxxx\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** union, index type\r\n\r\n**Code**\r\n\r\n```ts\r\nclass Test\u003cProps extends Object> {\r\n  constructor(public o: Props) {}\r\n  get\u003cK extends keyof Props>(k: K) : Props[K] { return this.o[k]; }\r\n}\r\n\r\ninterface A {t: \"A\";};\r\ninterface B {t: \"B\";};\r\ntype u = Test\u003cA> | Test\u003cB>;\r\n\r\nconst tmp = new Test\u003cB>({t: 'B'}) as u;\r\n\r\nswitch(tmp.get('t')) {\r\n  case 'A': break;\r\n  case 'B': break;\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nCode compiles with `tmp.get('t')` having type `\"A\" | \"B\"`.\r\n\r\nThis works for:\r\n\r\n* [simple objects/interfaces](https://www.typescriptlang.org/play/#src=interface%20A%20%7B%20t%3A%20'A'%3B%20%7D%3B%0D%0Ainterface%20B%20%7B%20t%3A%20'B'%3B%20%7D%3B%0D%0Atype%20u%20%3D%20A%20%7C%20B%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20%7B%20t%3A%20'B'%20%7D%20as%20u%3B%0D%0A%0D%0Aswitch(tmp.t)%20%7B%0D%0A%20%20case%20'A'%3A%20break%3B%0D%0A%20%20case%20'B'%3A%20break%3B%0D%0A%7D)\r\n* [classes](https://www.typescriptlang.org/play/#src=class%20A%20%7B%0D%0A%20%20get()%20%7B%20return%20%22A%22%3B%20%7D%0D%0A%7D%0D%0A%0D%0Aclass%20B%20%7B%0D%0A%20%20get()%20%7B%20return%20%22B%22%3B%20%7D%0D%0A%7D%0D%0A%0D%0Atype%20u%20%3D%20A%20%7C%20B%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20new%20B()%20as%20u%3B%0D%0A%0D%0Aswitch(tmp.get())%20%7B%0D%0A%20%20case%20'A'%3A%20break%3B%0D%0A%20%20case%20'B'%3A%20break%3B%0D%0A%7D)\r\n* [classes with generics](https://www.typescriptlang.org/play/#src=class%20Test%3CT%3E%20%7B%0D%0A%20%20constructor(public%20v%3A%20T)%20%7B%7D%0D%0A%20%20get()%20%7B%20return%20this.v%3B%20%7D%0D%0A%7D%0D%0A%0D%0Atype%20u%20%3D%20Test%3C%22A%22%3E%20%7C%20Test%3C%22B%22%3E%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20new%20Test%3C%22B%22%3E(%22B%22)%20as%20u%3B%0D%0A%0D%0Aswitch(tmp.get())%20%7B%0D%0A%20%20case%20'A'%3A%20break%3B%0D%0A%20%20case%20'B'%3A%20break%3B%0D%0A%7D)\r\n\r\n**Actual behavior:**\r\n\r\nCompilation fails with error:\r\n\r\n    Type '\"B\"' is not comparable to type '\"A\"'.\r\n\r\nType of `tmp.get('t')` is only `\"A\"`.\r\n\r\nProblem is not contained to string literals, but also [other types](https://www.typescriptlang.org/play/#src=class%20Test%3CProps%20extends%20Object%3E%20%7B%0D%0A%20%20constructor(public%20o%3A%20Props)%20%7B%7D%0D%0A%20%20get%3CK%20extends%20keyof%20Props%3E(k%3A%20K)%20%3A%20Props%5BK%5D%20%7B%20return%20this.o%5Bk%5D%3B%20%7D%0D%0A%7D%0D%0A%0D%0Ainterface%20Num%20%7Ba%3A%20number%3B%7D%3B%0D%0Ainterface%20Str%20%7Ba%3A%20string%3B%7D%3B%0D%0Atype%20u%20%3D%20Test%3CNum%3E%20%7C%20Test%3CStr%3E%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20new%20Test%3CStr%3E(%7Ba%3A%20'test'%7D)%20as%20u%3B%0D%0A%2F%2F%20type%20is%20'number'%2C%20not%20'number%20%7C%20string'%0D%0Aconst%20res%20%3D%20tmp.get('a')%3B). Enountered this bug using immutable-js Record.get().\r\n\r\n**Playground Link:** [playground](https://www.typescriptlang.org/play/#src=class%20Test%3CProps%20extends%20Object%3E%20%7B%0D%0A%20%20constructor(public%20o%3A%20Props)%20%7B%7D%0D%0A%20%20get%3CK%20extends%20keyof%20Props%3E(k%3A%20K)%20%3A%20Props%5BK%5D%20%7B%20return%20this.o%5Bk%5D%3B%20%7D%0D%0A%7D%0D%0A%0D%0Ainterface%20A%20%7Bt%3A%20%22A%22%3B%7D%3B%0D%0Ainterface%20B%20%7Bt%3A%20%22B%22%3B%7D%3B%0D%0Atype%20u%20%3D%20Test%3CA%3E%20%7C%20Test%3CB%3E%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20new%20Test%3CB%3E(%7Bt%3A%20'B'%7D)%20as%20u%3B%0D%0A%0D%0Aswitch(tmp.get('t'))%20%7B%0D%0A%20%20case%20'A'%3A%20break%3B%0D%0A%20%20case%20'B'%3A%20break%3B%0D%0A%7D%0D%0A)\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? --> None found","author":{"url":"https://github.com/thammi","@type":"Person","name":"thammi"},"datePublished":"2019-04-02T19:43:27Z","url":"https://github.com/microsoft/TypeScript/issues/30717"}

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:3717af06-c5a0-00a6-5c2a-35dd95181e63
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC430:2D2F2F:AF8949:E469EA:6B00E7B9
html-safe-nonce5f64684e8a8b733856819e6cf7b16d8be2d318c2c02b289b9441e96813ea7ed1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDMwOjJEMkYyRjpBRjg5NDk6RTQ2OUVBOjZCMDBFN0I5IiwidmlzaXRvcl9pZCI6IjEzMjMzNTE4NTE3MjYzMzM4ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfbc067d0d1c3104eaaff6b9aaaeb40a80c6a30c04c864b049d45ee7d3a24bf8b
hovercard-subject-tagissue:428408282
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/30717/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0cb0426e07ffe10c4169c0ecdc8c18720acd3898f6f6678a16d834eb8f86d256/microsoft/TypeScript/issues/30717
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0cb0426e07ffe10c4169c0ecdc8c18720acd3898f6f6678a16d834eb8f86d256/microsoft/TypeScript/issues/30717
og:image:altTypeScript Version: 3.4.0-dev.201xxxxx Search Terms: union, index type Code class Test { constructor(public o: Props) {} get(k: K) : Props[K] { return t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethammi
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/30717#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F30717
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%2F30717
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/30717
Reloadhttps://github.com/microsoft/TypeScript/issues/30717
Reloadhttps://github.com/microsoft/TypeScript/issues/30717
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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/30717
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/30717
Method returning index type breaks type interference of union typeshttps://github.com/microsoft/TypeScript/issues/30717#top
https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
TypeScript 3.7.1https://github.com/microsoft/TypeScript/milestone/105
https://github.com/thammi
Stephan Thamm (thammi)https://github.com/thammi
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/30717#issue-428408282
simple objects/interfaceshttps://www.typescriptlang.org/play/#src=interface%20A%20%7B%20t%3A%20'A'%3B%20%7D%3B%0D%0Ainterface%20B%20%7B%20t%3A%20'B'%3B%20%7D%3B%0D%0Atype%20u%20%3D%20A%20%7C%20B%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20%7B%20t%3A%20'B'%20%7D%20as%20u%3B%0D%0A%0D%0Aswitch(tmp.t)%20%7B%0D%0A%20%20case%20'A'%3A%20break%3B%0D%0A%20%20case%20'B'%3A%20break%3B%0D%0A%7D
classeshttps://www.typescriptlang.org/play/#src=class%20A%20%7B%0D%0A%20%20get()%20%7B%20return%20%22A%22%3B%20%7D%0D%0A%7D%0D%0A%0D%0Aclass%20B%20%7B%0D%0A%20%20get()%20%7B%20return%20%22B%22%3B%20%7D%0D%0A%7D%0D%0A%0D%0Atype%20u%20%3D%20A%20%7C%20B%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20new%20B()%20as%20u%3B%0D%0A%0D%0Aswitch(tmp.get())%20%7B%0D%0A%20%20case%20'A'%3A%20break%3B%0D%0A%20%20case%20'B'%3A%20break%3B%0D%0A%7D
classes with genericshttps://www.typescriptlang.org/play/#src=class%20Test%3CT%3E%20%7B%0D%0A%20%20constructor(public%20v%3A%20T)%20%7B%7D%0D%0A%20%20get()%20%7B%20return%20this.v%3B%20%7D%0D%0A%7D%0D%0A%0D%0Atype%20u%20%3D%20Test%3C%22A%22%3E%20%7C%20Test%3C%22B%22%3E%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20new%20Test%3C%22B%22%3E(%22B%22)%20as%20u%3B%0D%0A%0D%0Aswitch(tmp.get())%20%7B%0D%0A%20%20case%20'A'%3A%20break%3B%0D%0A%20%20case%20'B'%3A%20break%3B%0D%0A%7D
other typeshttps://www.typescriptlang.org/play/#src=class%20Test%3CProps%20extends%20Object%3E%20%7B%0D%0A%20%20constructor(public%20o%3A%20Props)%20%7B%7D%0D%0A%20%20get%3CK%20extends%20keyof%20Props%3E(k%3A%20K)%20%3A%20Props%5BK%5D%20%7B%20return%20this.o%5Bk%5D%3B%20%7D%0D%0A%7D%0D%0A%0D%0Ainterface%20Num%20%7Ba%3A%20number%3B%7D%3B%0D%0Ainterface%20Str%20%7Ba%3A%20string%3B%7D%3B%0D%0Atype%20u%20%3D%20Test%3CNum%3E%20%7C%20Test%3CStr%3E%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20new%20Test%3CStr%3E(%7Ba%3A%20'test'%7D)%20as%20u%3B%0D%0A%2F%2F%20type%20is%20'number'%2C%20not%20'number%20%7C%20string'%0D%0Aconst%20res%20%3D%20tmp.get('a')%3B
playgroundhttps://www.typescriptlang.org/play/#src=class%20Test%3CProps%20extends%20Object%3E%20%7B%0D%0A%20%20constructor(public%20o%3A%20Props)%20%7B%7D%0D%0A%20%20get%3CK%20extends%20keyof%20Props%3E(k%3A%20K)%20%3A%20Props%5BK%5D%20%7B%20return%20this.o%5Bk%5D%3B%20%7D%0D%0A%7D%0D%0A%0D%0Ainterface%20A%20%7Bt%3A%20%22A%22%3B%7D%3B%0D%0Ainterface%20B%20%7Bt%3A%20%22B%22%3B%7D%3B%0D%0Atype%20u%20%3D%20Test%3CA%3E%20%7C%20Test%3CB%3E%3B%0D%0A%0D%0Aconst%20tmp%20%3D%20new%20Test%3CB%3E(%7Bt%3A%20'B'%7D)%20as%20u%3B%0D%0A%0D%0Aswitch(tmp.get('t'))%20%7B%0D%0A%20%20case%20'A'%3A%20break%3B%0D%0A%20%20case%20'B'%3A%20break%3B%0D%0A%7D%0D%0A
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/30717#issuecomment-479173746
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/30717#event-2247741819
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/30717#event-2247742630
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.6.0https://github.com/microsoft/TypeScript/milestone/93
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/30717#event-2247744268
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 2, 2019https://github.com/microsoft/TypeScript/issues/30717#issuecomment-479175929
Wesley Wigham (weswigham)https://github.com/weswigham
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Jul 15, 2019https://github.com/microsoft/TypeScript/issues/30717#event-2484158377
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Jul 15, 2019https://github.com/microsoft/TypeScript/issues/30717#issuecomment-511559951
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 3.6.0https://github.com/microsoft/TypeScript/milestone/93
TypeScript 3.6.1https://github.com/microsoft/TypeScript/milestone/100
on Jul 19, 2019https://github.com/microsoft/TypeScript/issues/30717#event-2496526037
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.6.1https://github.com/microsoft/TypeScript/milestone/100
TypeScript 3.7.0https://github.com/microsoft/TypeScript/milestone/98
on Sep 25, 2019https://github.com/microsoft/TypeScript/issues/30717#event-2662710935
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.7.0https://github.com/microsoft/TypeScript/milestone/98
TypeScript 3.7.1https://github.com/microsoft/TypeScript/milestone/105
on Oct 14, 2019https://github.com/microsoft/TypeScript/issues/30717#event-2711295053
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 29, 2019https://github.com/microsoft/TypeScript/issues/30717#issuecomment-547515994
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 29, 2019https://github.com/microsoft/TypeScript/issues/30717#event-2752926910
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Oct 29, 2019https://github.com/microsoft/TypeScript/issues/30717#issuecomment-547579825
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
#31023https://github.com/microsoft/TypeScript/pull/31023
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/30717#event-20415934855
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/30717
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/30717
Wesley Wigham (weswigham)https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
TypeScript 3.7.1https://github.com/microsoft/TypeScript/milestone/105
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.