René's URL Explorer Experiment


Title: Tuple with conditional optional type · Issue #31409 · microsoft/TypeScript · GitHub

Open Graph Title: Tuple with conditional optional type · Issue #31409 · microsoft/TypeScript

X Title: Tuple with conditional optional type · Issue #31409 · microsoft/TypeScript

Description: Summary: I can define in typescript that tuple contains optional elements, e.g. let array: [string?]; - I can assign empty array. But can I combine this with conditional (generic) type: when type is defined then value should be set. Othe...

Open Graph Description: Summary: I can define in typescript that tuple contains optional elements, e.g. let array: [string?]; - I can assign empty array. But can I combine this with conditional (generic) type: when type i...

X Description: Summary: I can define in typescript that tuple contains optional elements, e.g. let array: [string?]; - I can assign empty array. But can I combine this with conditional (generic) type: when type i...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tuple with conditional optional type","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**Summary:** \r\nI can define in typescript that tuple contains optional elements, e.g. `let array: [string?];` - I can assign empty array. But can I combine this with conditional (generic) type: when type is defined then value should be set. Otherwise, value is disallowed. Or at least optional if not disallowed.\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** \r\n3.5.0-dev.20190515\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\ntuple with conditional optional type \r\n\r\n**Code**\r\n\r\n```ts\r\ninterface A\u003cT = never> {\r\n    array: [\r\n        [T] extends [never] ? never : T, // how to make this `never` as optional?\r\n        // smth like this does not work:\r\n        // [T] extends [void] ? never? : T1, //error: `JSDoc types can only be used inside of documentation comments`\r\n        // T? // optional works here correctly\r\n    ]\r\n}\r\n\r\nlet test1: A\u003cstring>;\r\ntest1.array = [\"some string\"]\r\ntest1.array = [] // error: correctly\r\n\r\nlet test2: A;\r\ntest2.array = [ \"\" ] // error: correctly\r\ntest2.array = [ undefined ] // error: correctly\r\ntest2.array = [ null ] // error: correctly\r\ntest2.array = []; // error: INCORRECTLY! `Property '0' is missing in type '[]' but required in type '[never]'.`\r\n```\r\n\r\n**Expected behavior:**\r\nI can assign empty array to `test2.array`. Even more - I cannot assign not empty array.\r\n\r\n**Actual behavior:**\r\nI cannot assign empty array. I cannot assign also array with some value. I have to use some other type and pass it explicitly, e.g. undefined:\r\n```ts\r\ninterface A\u003cT = never> {\r\n    array: [\r\n        [T] extends [never] ? undefined : T\r\n    ]\r\n}\r\n\r\nlet test1: A\u003cstring>;\r\ntest1.array = [\"some string\"]\r\ntest1.array = [] // error: correctly\r\n\r\nlet test2: A;\r\ntest2.array = [ \"\" ] // error: correctly\r\ntest2.array = [ undefined ] // error: correctly\r\ntest2.array = [ null ] // no error: is it correct?\r\ntest2.array = []; // error: INCORRECTLY! `Property '0' is missing in type '[]' but required in type '[never]'.`\r\n```\r\n\r\n[**Playground Link**](https://www.typescriptlang.org/play/#src=interface%20A%3CT%20%3D%20never%3E%20%7B%0D%0A%20%20%20%20array%3A%20%5B%0D%0A%20%20%20%20%20%20%20%20%5BT%5D%20extends%20%5Bnever%5D%20%3F%20never%20%3A%20T%2C%20%2F%2F%20how%20to%20make%20this%20%60never%60%20as%20optional%3F%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20smth%20like%20this%20does%20not%20work%3A%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20%5BT%5D%20extends%20%5Bvoid%5D%20%3F%20never%3F%20%3A%20T1%2C%20%2F%2Ferror%3A%20%60JSDoc%20types%20can%20only%20be%20used%20inside%20of%20documentation%20comments%60%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20T%3F%20%2F%2F%20%22plain%22%20optional%20works%20here%20correctly%0D%0A%20%20%20%20%5D%0D%0A%7D%0D%0A%0D%0Alet%20test1%3A%20A%3Cstring%3E%3B%0D%0Atest1.array%20%3D%20%5B%22some%20string%22%5D%0D%0Atest1.array%20%3D%20%5B%5D%20%2F%2F%20error%3A%20correctly%0D%0A%0D%0Alet%20test2%3A%20A%3B%0D%0Atest2.array%20%3D%20%5B%20%22%22%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%20undefined%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%20null%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%5D%3B%20%2F%2F%20error%3A%20INCORRECTLY!%20%60Property%20'0'%20is%20missing%20in%20type%20'%5B%5D'%20but%20required%20in%20type%20'%5Bnever%5D'.%60)","author":{"url":"https://github.com/Krzyrok","@type":"Person","name":"Krzyrok"},"datePublished":"2019-05-15T15:13:45Z","url":"https://github.com/microsoft/TypeScript/issues/31409"}

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:45cdfec8-72e3-6aa9-d035-ba0cc5119a4f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE87E:395430:A8494B:E0154F:6B00E9FC
html-safe-nonce58b8e8f1c2c3767cd78c31be9a09e826742c686220966caa6651afa743e818f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODdFOjM5NTQzMDpBODQ5NEI6RTAxNTRGOjZCMDBFOUZDIiwidmlzaXRvcl9pZCI6IjY5MjcyNjE4ODQ4OTA1NDA1NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb470e0bf77c71be55e898d0b7c47d6c55ce722ec6e0e6714dfcde9f2812c8047
hovercard-subject-tagissue:444496613
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/31409/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5060282f975a326a2a9af88494058da213e91e1da4db4c2bb297a00045ad34fa/microsoft/TypeScript/issues/31409
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5060282f975a326a2a9af88494058da213e91e1da4db4c2bb297a00045ad34fa/microsoft/TypeScript/issues/31409
og:image:altSummary: I can define in typescript that tuple contains optional elements, e.g. let array: [string?]; - I can assign empty array. But can I combine this with conditional (generic) type: when type i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKrzyrok
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/31409#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F31409
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%2F31409
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/31409
Reloadhttps://github.com/microsoft/TypeScript/issues/31409
Reloadhttps://github.com/microsoft/TypeScript/issues/31409
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/31409
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/31409
Tuple with conditional optional typehttps://github.com/microsoft/TypeScript/issues/31409#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/Krzyrok
Krzyrok (Krzyrok)https://github.com/Krzyrok
on May 15, 2019https://github.com/microsoft/TypeScript/issues/31409#issue-444496613
Playground Linkhttps://www.typescriptlang.org/play/#src=interface%20A%3CT%20%3D%20never%3E%20%7B%0D%0A%20%20%20%20array%3A%20%5B%0D%0A%20%20%20%20%20%20%20%20%5BT%5D%20extends%20%5Bnever%5D%20%3F%20never%20%3A%20T%2C%20%2F%2F%20how%20to%20make%20this%20%60never%60%20as%20optional%3F%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20smth%20like%20this%20does%20not%20work%3A%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20%5BT%5D%20extends%20%5Bvoid%5D%20%3F%20never%3F%20%3A%20T1%2C%20%2F%2Ferror%3A%20%60JSDoc%20types%20can%20only%20be%20used%20inside%20of%20documentation%20comments%60%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20T%3F%20%2F%2F%20%22plain%22%20optional%20works%20here%20correctly%0D%0A%20%20%20%20%5D%0D%0A%7D%0D%0A%0D%0Alet%20test1%3A%20A%3Cstring%3E%3B%0D%0Atest1.array%20%3D%20%5B%22some%20string%22%5D%0D%0Atest1.array%20%3D%20%5B%5D%20%2F%2F%20error%3A%20correctly%0D%0A%0D%0Alet%20test2%3A%20A%3B%0D%0Atest2.array%20%3D%20%5B%20%22%22%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%20undefined%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%20null%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%5D%3B%20%2F%2F%20error%3A%20INCORRECTLY!%20%60Property%20'0'%20is%20missing%20in%20type%20'%5B%5D'%20but%20required%20in%20type%20'%5Bnever%5D'.%60
https://github.com/AlCalzone
AlCalzonehttps://github.com/AlCalzone
on May 15, 2019https://github.com/microsoft/TypeScript/issues/31409#issuecomment-492707999
https://github.com/Krzyrok
Krzyrok (Krzyrok)https://github.com/Krzyrok
on May 15, 2019https://github.com/microsoft/TypeScript/issues/31409#issuecomment-492725493
playgroundhttps://www.typescriptlang.org/play/#src=interface%20A%3CT1%20%3D%20never%2C%20T2%20%3D%20never%3E%20%7B%0D%0A%20%20%20%20array%3A%20%5BT1%5D%20extends%20%5Bnever%5D%0D%0A%20%20%20%20%20%20%20%20%3F%20%5B%5D%0D%0A%20%20%20%20%20%20%20%20%3A%20%5BT2%5D%20extends%20%5Bnever%5D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%3F%20%5BT1%5D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%3A%20%5BT1%2C%20T2%5D%0D%0A%7D%0D%0A%0D%0Alet%20test1%3A%20A%3Cstring%3E%3B%0D%0Atest1.array%20%3D%20%5B%22some%20string%22%5D%0D%0Atest1.array%20%3D%20%5B%5D%20%2F%2F%20error%3A%20correctly%0D%0A%0D%0Alet%20test2%3A%20A%3B%0D%0Atest2.array%20%3D%20%5B%20%22%22%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%20undefined%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%20null%20%5D%20%2F%2F%20error%3A%20correctly%0D%0Atest2.array%20%3D%20%5B%5D%3B%0D%0A%0D%0Alet%20test3%3A%20A%3Cstring%2C%20number%3E%3B%0D%0Atest3.array%20%3D%20%5B%22some%20string%22%2C%2055%5D%0D%0Atest3.array%20%3D%20%5B%5D%20%2F%2F%20error%3A%20correctly
Krzyrok (Krzyrok)https://github.com/Krzyrok
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 15, 2019https://github.com/microsoft/TypeScript/issues/31409#event-2343887459
https://github.com/Krzyrok
Krzyrok (Krzyrok)https://github.com/Krzyrok
on May 16, 2019https://github.com/microsoft/TypeScript/issues/31409#issuecomment-492946947
playgroundhttps://www.typescriptlang.org/play/#src=class%20GenericTupple%3CT1%2C%20T2%3E%20%7B%0D%0A%20%20%20%20tupple1%3A%20%5BT1%5D%20%7C%20%5BT1%2C%20T2%5D%3B%0D%0A%20%20%20%20tupple2%3A%20%5BT1%2C%20T2%5D%3B%0D%0A%20%20%20%20tupple3%3A%20%5BT1%2C%20T2%3F%5D%3B%0D%0A%0D%0A%20%20%20%20getString1()%3A%20string%20%7B%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20This%20one%20does%20not%20work%20%3A%2F%0D%0A%20%20%20%20%20%20%20%20return%20this.tupple1.reduce((final%2C%20prev)%20%3D%3E%20%60%24%7Bfinal%7D.%24%7Bprev%7D%60%2C%20'')%3B%0D%0A%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20to%20make%20it%20work%2C%20I%20need%20to%20cast%20to%20%60%5BT1%2C%20T2%3F%5D%60%60%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20return%20(this.tupple1%20as%20%5BT1%2C%20T2%3F%5D).reduce((final%2C%20prev)%20%3D%3E%20%60%24%7Bfinal%7D.%24%7Bprev%7D%60%2C%20'')%3B%0D%0A%20%20%20%20%7D%0D%0A%0D%0A%20%20%20%20getString2()%3A%20string%20%7B%0D%0A%20%20%20%20%20%20%20%20return%20this.tupple2.reduce((final%2C%20prev)%20%3D%3E%20%60%24%7Bfinal%7D.%24%7Bprev%7D%60%2C%20'')%3B%0D%0A%20%20%20%20%7D%0D%0A%0D%0A%20%20%20%20getString3()%3A%20string%20%7B%0D%0A%20%20%20%20%20%20%20%20return%20this.tupple3.reduce((final%2C%20prev)%20%3D%3E%20%60%24%7Bfinal%7D.%24%7Bprev%7D%60%2C%20'')%3B%0D%0A%20%20%20%20%7D%0D%0A%7D%0D%0A
playgroundhttps://www.typescriptlang.org/play/#src=class%20A%3CT1%2C%20T2%20%3D%20never%2C%20T3%20%3D%20never%3E%20%7B%0D%0A%20%20%20%20array%3A%20%5BT2%5D%20extends%20%5Bnever%5D%0D%0A%20%20%20%20%20%20%20%20%3F%20%5BT1%5D%0D%0A%20%20%20%20%20%20%20%20%3A%20%5BT3%5D%20extends%20%5Bnever%5D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%3F%20%5BT1%2C%20T2%5D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%3A%20%5BT1%2C%20T2%2C%20T3%5D%0D%0A%0D%0A%20%20%20%20getString()%3A%20string%20%7B%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20return%20this.array.reduce((final%2C%20prev)%20%3D%3E%20%60%24%7Bfinal%7D.%24%7Bprev%7D%60%2C%20'')%3B%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20to%20make%20it%20work%2C%20I%20need%20to%20cast%20to%20%60%5BT1%2C%20T2%3F%2C%20T3%3F%5D%60%60%0D%0A%20%20%20%20%20%20%20%20return%20(this.array%20as%20%5BT1%2C%20T2%3F%2C%20T3%3F%5D).reduce((final%2C%20prev)%20%3D%3E%20%60%24%7Bfinal%7D.%24%7Bprev%7D%60%2C%20'')%3B%0D%0A%20%20%20%20%7D%0D%0A%7D%0D%0A
Krzyrok (Krzyrok)https://github.com/Krzyrok
on May 16, 2019https://github.com/microsoft/TypeScript/issues/31409#event-2345455909
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 May 17, 2019https://github.com/microsoft/TypeScript/issues/31409#event-2350011728
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 13, 2019https://github.com/microsoft/TypeScript/issues/31409#event-2480427574
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/31409#event-20416680693
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/31409
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/31409
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.