René's URL Explorer Experiment


Title: Type inference issue related to usage of conditional type · Issue #25299 · microsoft/TypeScript · GitHub

Open Graph Title: Type inference issue related to usage of conditional type · Issue #25299 · microsoft/TypeScript

X Title: Type inference issue related to usage of conditional type · Issue #25299 · microsoft/TypeScript

Description: TypeScript Version: 2.8.1, 2.9.2, 3.0.0-dev.20180628 Search Terms: conditional type inference Code // Don't know what causes the problem so cannot come up with a shorter sample type ActionType

= string & { attachPayloadTypeHack?: P & ...

Open Graph Description: TypeScript Version: 2.8.1, 2.9.2, 3.0.0-dev.20180628 Search Terms: conditional type inference Code // Don't know what causes the problem so cannot come up with a shorter sample type ActionType

=...

X Description: TypeScript Version: 2.8.1, 2.9.2, 3.0.0-dev.20180628 Search Terms: conditional type inference Code // Don't know what causes the problem so cannot come up with a shorter sample type ActionType&...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type inference issue related to usage of conditional 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\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  \r\n2.8.1, 2.9.2, 3.0.0-dev.20180628\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\nconditional type inference\r\n\r\n**Code**\r\n\r\n```ts\r\n// Don't know what causes the problem so cannot come up with a shorter sample\r\n\r\ntype ActionType\u003cP> = string & { attachPayloadTypeHack?: P & never }\r\n\r\n/*\r\n// irrelevant type to reproduce my issue\r\n// but gives context that action might have no additional payload to handle\r\n\r\ntype Action\u003cP> = P extends void\r\n    ? { type: ActionType\u003cP> }\r\n    : { type: ActionType\u003cP>, payload: P }\r\n*/\r\n\r\ntype Handler\u003cS, P> = P extends void\r\n    ? (state: S) => S\r\n    : (state: S, payload: P) => S\r\n\r\ninterface ActionHandler\u003cS, P> {\r\n    actionType: ActionType\u003cP>\r\n    handler: Handler\u003cS, P>\r\n}\r\n\r\ndeclare function handler\u003cS, P>(actionType: ActionType\u003cP>, handler: Handler\u003cS, P>): ActionHandler\u003cS, P>\r\n\r\ndeclare function createReducer\u003cS>(\r\n        defaultState: S,\r\n        ...actionHandlers: ActionHandler\u003cS /* force state S for every action handler*/, any>[]\r\n    ): any\r\n\r\ninterface AppState {\r\n    dummy: string\r\n}\r\n\r\nconst defaultState: AppState = {\r\n    dummy: ''\r\n}\r\n\r\nconst NON_VOID_ACTION: ActionType\u003cnumber> = 'NON_VOID_ACTION'\r\n    , VOID_ACTION: ActionType\u003cvoid> = 'VOID_ACTION'\r\n\r\nhandler\u003cAppState, number>(NON_VOID_ACTION, (state, _payload) => state), // ok - state is AppState\r\nhandler\u003cAppState, void>(VOID_ACTION, state => state) // ok - state is AppState\r\n\r\ncreateReducer(\r\n    defaultState,\r\n    handler(NON_VOID_ACTION, (state, _payload) => state), // ok - state is AppState\r\n    handler(VOID_ACTION, state => state) // unexpected - state is any\r\n)\r\n```\r\n\r\n**Expected behavior:**\r\nstate parameter is infered to be \"AppState\" in the expression at the end\r\n```ts\r\nhandler(VOID_ACTION, state => state)\r\n```\r\n\r\n**Actual behavior:**\r\nstate parameter is infered to be \"any\" \r\n\r\n**Playground Link:** \u003c!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior --> \r\n[Playground](https://www.typescriptlang.org/play/index.html#src=%2F%2F%20Don't%20know%20what%20causes%20the%20problem%20so%20cannot%20come%20up%20with%20a%20shorter%20sample%0D%0A%0D%0Atype%20ActionType%3CP%3E%20%3D%20string%20%26%20%7B%20attachPayloadTypeHack%3F%3A%20P%20%26%20never%20%7D%0D%0A%0D%0A%2F*%0D%0A%2F%2F%20irrelevant%20type%20to%20reproduce%20my%20issue%0D%0A%2F%2F%20but%20gives%20context%20that%20action%20might%20have%20no%20additional%20payload%20to%20handle%0D%0A%0D%0Atype%20Action%3CP%3E%20%3D%20P%20extends%20void%0D%0A%20%20%20%20%3F%20%7B%20type%3A%20ActionType%3CP%3E%20%7D%0D%0A%20%20%20%20%3A%20%7B%20type%3A%20ActionType%3CP%3E%2C%20payload%3A%20P%20%7D%0D%0A*%2F%0D%0A%0D%0Atype%20Handler%3CS%2C%20P%3E%20%3D%20P%20extends%20void%0D%0A%20%20%20%20%3F%20(state%3A%20S)%20%3D%3E%20S%0D%0A%20%20%20%20%3A%20(state%3A%20S%2C%20payload%3A%20P)%20%3D%3E%20S%0D%0A%0D%0Ainterface%20ActionHandler%3CS%2C%20P%3E%20%7B%0D%0A%20%20%20%20actionType%3A%20ActionType%3CP%3E%0D%0A%20%20%20%20handler%3A%20Handler%3CS%2C%20P%3E%0D%0A%7D%0D%0A%0D%0Adeclare%20function%20handler%3CS%2C%20P%3E(actionType%3A%20ActionType%3CP%3E%2C%20handler%3A%20Handler%3CS%2C%20P%3E)%3A%20ActionHandler%3CS%2C%20P%3E%0D%0A%0D%0Adeclare%20function%20createReducer%3CS%3E(%0D%0A%20%20%20%20%20%20%20%20defaultState%3A%20S%2C%0D%0A%20%20%20%20%20%20%20%20...actionHandlers%3A%20ActionHandler%3CS%20%2F*%20force%20state%20S%20for%20every%20action%20handler*%2F%2C%20any%3E%5B%5D%0D%0A%20%20%20%20)%3A%20any%0D%0A%0D%0Ainterface%20AppState%20%7B%0D%0A%20%20%20%20dummy%3A%20string%0D%0A%7D%0D%0A%0D%0Aconst%20defaultState%3A%20AppState%20%3D%20%7B%0D%0A%20%20%20%20dummy%3A%20''%0D%0A%7D%0D%0A%0D%0Aconst%20NON_VOID_ACTION%3A%20ActionType%3Cnumber%3E%20%3D%20'NON_VOID_ACTION'%0D%0A%20%20%20%20%2C%20VOID_ACTION%3A%20ActionType%3Cvoid%3E%20%3D%20'VOID_ACTION'%0D%0A%0D%0Ahandler%3CAppState%2C%20number%3E(NON_VOID_ACTION%2C%20(state%2C%20_payload)%20%3D%3E%20state)%2C%20%2F%2F%20ok%20-%20state%20is%20AppState%0D%0Ahandler%3CAppState%2C%20void%3E(VOID_ACTION%2C%20state%20%3D%3E%20state)%20%2F%2F%20ok%20-%20state%20is%20AppState%0D%0A%0D%0AcreateReducer(%0D%0A%20%20%20%20defaultState%2C%0D%0A%20%20%20%20handler(NON_VOID_ACTION%2C%20(state%2C%20_payload)%20%3D%3E%20state)%2C%20%2F%2F%20ok%20-%20state%20is%20AppState%0D%0A%20%20%20%20handler(VOID_ACTION%2C%20state%20%3D%3E%20state)%20%2F%2F%20unexpected%20-%20state%20is%20any%0D%0A))\r\n(use noImplicitAny flag)\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\nNot sure #25301\r\n\r\n**Workaround:**\r\nWhen Handler is defined as follows\r\n```ts\r\ntype Handler\u003cS, P> = (state: S, payload: P) => S\r\n```\r\nit still allows to pass single argument handler and state is infered to be AppState","author":{"url":"https://github.com/andriy-kudrya","@type":"Person","name":"andriy-kudrya"},"datePublished":"2018-06-28T18:36:34Z","url":"https://github.com/microsoft/TypeScript/issues/25299"}

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:fb9e8618-7229-b318-0847-23fde6c05743
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9158:60A6D:39B407:4CA09C:6B01940E
html-safe-nonce8c2d39a4d3cd4cdee901cbe8f5be1c4db339bfc99b3e5ef35c58158945dfbb59
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTU4OjYwQTZEOjM5QjQwNzo0Q0EwOUM6NkIwMTk0MEUiLCJ2aXNpdG9yX2lkIjoiMjMyMjA2NTk2NTc3NDM3Nzk5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6decefec494463f980b728f1266734f9bd8be2e4a4b1743612e01b4cf2bba709
hovercard-subject-tagissue:336733712
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/25299/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dadada95bf3846ecf797c1a0dfcc978c1e5747bca8936b4007bab7a8862a2cf6/microsoft/TypeScript/issues/25299
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dadada95bf3846ecf797c1a0dfcc978c1e5747bca8936b4007bab7a8862a2cf6/microsoft/TypeScript/issues/25299
og:image:altTypeScript Version: 2.8.1, 2.9.2, 3.0.0-dev.20180628 Search Terms: conditional type inference Code // Don't know what causes the problem so cannot come up with a shorter sample type ActionType

=...

og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandriy-kudrya
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/25299#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F25299
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%2F25299
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/25299
Reloadhttps://github.com/microsoft/TypeScript/issues/25299
Reloadhttps://github.com/microsoft/TypeScript/issues/25299
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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/25299
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25299
Type inference issue related to usage of conditional typehttps://github.com/microsoft/TypeScript/issues/25299#top
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: Conditional TypesThe issue relates to conditional typeshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Conditional%20Types%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 3.5.0https://github.com/microsoft/TypeScript/milestone/89
https://github.com/andriy-kudrya
andriy-kudryahttps://github.com/andriy-kudrya
on Jun 28, 2018https://github.com/microsoft/TypeScript/issues/25299#issue-336733712
Playgroundhttps://www.typescriptlang.org/play/index.html#src=%2F%2F%20Don't%20know%20what%20causes%20the%20problem%20so%20cannot%20come%20up%20with%20a%20shorter%20sample%0D%0A%0D%0Atype%20ActionType%3CP%3E%20%3D%20string%20%26%20%7B%20attachPayloadTypeHack%3F%3A%20P%20%26%20never%20%7D%0D%0A%0D%0A%2F*%0D%0A%2F%2F%20irrelevant%20type%20to%20reproduce%20my%20issue%0D%0A%2F%2F%20but%20gives%20context%20that%20action%20might%20have%20no%20additional%20payload%20to%20handle%0D%0A%0D%0Atype%20Action%3CP%3E%20%3D%20P%20extends%20void%0D%0A%20%20%20%20%3F%20%7B%20type%3A%20ActionType%3CP%3E%20%7D%0D%0A%20%20%20%20%3A%20%7B%20type%3A%20ActionType%3CP%3E%2C%20payload%3A%20P%20%7D%0D%0A*%2F%0D%0A%0D%0Atype%20Handler%3CS%2C%20P%3E%20%3D%20P%20extends%20void%0D%0A%20%20%20%20%3F%20(state%3A%20S)%20%3D%3E%20S%0D%0A%20%20%20%20%3A%20(state%3A%20S%2C%20payload%3A%20P)%20%3D%3E%20S%0D%0A%0D%0Ainterface%20ActionHandler%3CS%2C%20P%3E%20%7B%0D%0A%20%20%20%20actionType%3A%20ActionType%3CP%3E%0D%0A%20%20%20%20handler%3A%20Handler%3CS%2C%20P%3E%0D%0A%7D%0D%0A%0D%0Adeclare%20function%20handler%3CS%2C%20P%3E(actionType%3A%20ActionType%3CP%3E%2C%20handler%3A%20Handler%3CS%2C%20P%3E)%3A%20ActionHandler%3CS%2C%20P%3E%0D%0A%0D%0Adeclare%20function%20createReducer%3CS%3E(%0D%0A%20%20%20%20%20%20%20%20defaultState%3A%20S%2C%0D%0A%20%20%20%20%20%20%20%20...actionHandlers%3A%20ActionHandler%3CS%20%2F*%20force%20state%20S%20for%20every%20action%20handler*%2F%2C%20any%3E%5B%5D%0D%0A%20%20%20%20)%3A%20any%0D%0A%0D%0Ainterface%20AppState%20%7B%0D%0A%20%20%20%20dummy%3A%20string%0D%0A%7D%0D%0A%0D%0Aconst%20defaultState%3A%20AppState%20%3D%20%7B%0D%0A%20%20%20%20dummy%3A%20''%0D%0A%7D%0D%0A%0D%0Aconst%20NON_VOID_ACTION%3A%20ActionType%3Cnumber%3E%20%3D%20'NON_VOID_ACTION'%0D%0A%20%20%20%20%2C%20VOID_ACTION%3A%20ActionType%3Cvoid%3E%20%3D%20'VOID_ACTION'%0D%0A%0D%0Ahandler%3CAppState%2C%20number%3E(NON_VOID_ACTION%2C%20(state%2C%20_payload)%20%3D%3E%20state)%2C%20%2F%2F%20ok%20-%20state%20is%20AppState%0D%0Ahandler%3CAppState%2C%20void%3E(VOID_ACTION%2C%20state%20%3D%3E%20state)%20%2F%2F%20ok%20-%20state%20is%20AppState%0D%0A%0D%0AcreateReducer(%0D%0A%20%20%20%20defaultState%2C%0D%0A%20%20%20%20handler(NON_VOID_ACTION%2C%20(state%2C%20_payload)%20%3D%3E%20state)%2C%20%2F%2F%20ok%20-%20state%20is%20AppState%0D%0A%20%20%20%20handler(VOID_ACTION%2C%20state%20%3D%3E%20state)%20%2F%2F%20unexpected%20-%20state%20is%20any%0D%0A)
#25301https://github.com/microsoft/TypeScript/issues/25301
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Jun 28, 2018https://github.com/microsoft/TypeScript/issues/25299#event-1707561170
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Wesley Wigham (weswigham)https://github.com/weswigham
on Jun 28, 2018https://github.com/microsoft/TypeScript/issues/25299#event-1707561195
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 3.0https://github.com/microsoft/TypeScript/milestone/70
TypeScript 3.1https://github.com/microsoft/TypeScript/milestone/74
on Jun 28, 2018https://github.com/microsoft/TypeScript/issues/25299#event-1707561218
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 11, 2018https://github.com/microsoft/TypeScript/issues/25299#issuecomment-420103021
#17819https://github.com/microsoft/TypeScript/pull/17819
https://github.com/andriy-kudrya
andriy-kudryahttps://github.com/andriy-kudrya
on Sep 11, 2018https://github.com/microsoft/TypeScript/issues/25299#issuecomment-420371397
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 11, 2018https://github.com/microsoft/TypeScript/issues/25299#issuecomment-420371897
#17819https://github.com/microsoft/TypeScript/pull/17819
Wesley Wigham (weswigham)https://github.com/weswigham
TypeScript 3.1https://github.com/microsoft/TypeScript/milestone/74
TypeScript 3.2https://github.com/microsoft/TypeScript/milestone/77
on Sep 13, 2018https://github.com/microsoft/TypeScript/issues/25299#event-1844845195
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 13, 2018https://github.com/microsoft/TypeScript/issues/25299#issuecomment-421176563
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
#17819https://github.com/microsoft/TypeScript/pull/17819
Wesley Wigham (weswigham)https://github.com/weswigham
Domain: Conditional TypesThe issue relates to conditional typeshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Conditional%20Types%22
on Nov 1, 2018https://github.com/microsoft/TypeScript/issues/25299#event-1941596942
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 3.2https://github.com/microsoft/TypeScript/milestone/77
TypeScript 3.2.1https://github.com/microsoft/TypeScript/milestone/84
on Nov 14, 2018https://github.com/microsoft/TypeScript/issues/25299#event-1964634570
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 3.2.1https://github.com/microsoft/TypeScript/milestone/84
TypeScript 3.3.0https://github.com/microsoft/TypeScript/milestone/79
on Nov 29, 2018https://github.com/microsoft/TypeScript/issues/25299#event-1994045806
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.3https://github.com/microsoft/TypeScript/milestone/79
TypeScript 3.4.0https://github.com/microsoft/TypeScript/milestone/86
on Feb 1, 2019https://github.com/microsoft/TypeScript/issues/25299#event-2113055509
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
on Mar 13, 2019https://github.com/microsoft/TypeScript/issues/25299#event-2201526701
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 3.4.0https://github.com/microsoft/TypeScript/milestone/86
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Mar 13, 2019https://github.com/microsoft/TypeScript/issues/25299#event-2201526803
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#30568https://github.com/microsoft/TypeScript/pull/30568
on Mar 28, 2019https://github.com/microsoft/TypeScript/issues/25299#event-2237392128
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Mar 28, 2019https://github.com/microsoft/TypeScript/issues/25299#event-2237396904
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Backloghttps://github.com/microsoft/TypeScript/milestone/29
TypeScript 3.5.0https://github.com/microsoft/TypeScript/milestone/89
on Mar 28, 2019https://github.com/microsoft/TypeScript/issues/25299#event-2237397379
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/25299#event-20415719840
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/25299
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25299
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: Conditional TypesThe issue relates to conditional typeshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Conditional%20Types%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 3.5.0https://github.com/microsoft/TypeScript/milestone/89
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.