= string & { attachPayloadTypeHack?: P & ...
=...
{"@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-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:fb9e8618-7229-b318-0847-23fde6c05743 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9158:60A6D:39B407:4CA09C:6B01940E |
| html-safe-nonce | 8c2d39a4d3cd4cdee901cbe8f5be1c4db339bfc99b3e5ef35c58158945dfbb59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTU4OjYwQTZEOjM5QjQwNzo0Q0EwOUM6NkIwMTk0MEUiLCJ2aXNpdG9yX2lkIjoiMjMyMjA2NTk2NTc3NDM3Nzk5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6decefec494463f980b728f1266734f9bd8be2e4a4b1743612e01b4cf2bba709 |
| hovercard-subject-tag | issue:336733712 |
| 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/25299/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dadada95bf3846ecf797c1a0dfcc978c1e5747bca8936b4007bab7a8862a2cf6/microsoft/TypeScript/issues/25299 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dadada95bf3846ecf797c1a0dfcc978c1e5747bca8936b4007bab7a8862a2cf6/microsoft/TypeScript/issues/25299 |
| og:image:alt | 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 =... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andriy-kudrya |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
| Skip to content | https://github.com/microsoft/TypeScript/issues/25299#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F25299 |
| 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%2F25299 |
| 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/25299 |
| Reload | https://github.com/microsoft/TypeScript/issues/25299 |
| Reload | https://github.com/microsoft/TypeScript/issues/25299 |
| 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 requests312 (312) | 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/insights |
| https://github.com/microsoft/TypeScript |
| New issue | https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25299 |
| New issue | https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25299 |
| Type inference issue related to usage of conditional type | https://github.com/microsoft/TypeScript/issues/25299#top |
| BugA bug in TypeScript | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22 |
| Domain: Conditional TypesThe issue relates to conditional types | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Conditional%20Types%22 |
| FixedA PR has been merged for this issue | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22 |
| TypeScript 3.5.0 | https://github.com/microsoft/TypeScript/milestone/89 |
| https://github.com/andriy-kudrya |
| andriy-kudrya | https://github.com/andriy-kudrya |
| on Jun 28, 2018 | https://github.com/microsoft/TypeScript/issues/25299#issue-336733712 |
| 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) |
| #25301 | https://github.com/microsoft/TypeScript/issues/25301 |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| BugA bug in TypeScript | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22 |
| on Jun 28, 2018 | https://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, 2018 | https://github.com/microsoft/TypeScript/issues/25299#event-1707561195 |
| Mohamed Hegazy (mhegazy) | https://github.com/mhegazy |
| TypeScript 3.0 | https://github.com/microsoft/TypeScript/milestone/70 |
| TypeScript 3.1 | https://github.com/microsoft/TypeScript/milestone/74 |
| on Jun 28, 2018 | https://github.com/microsoft/TypeScript/issues/25299#event-1707561218 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| on Sep 11, 2018 | https://github.com/microsoft/TypeScript/issues/25299#issuecomment-420103021 |
| #17819 | https://github.com/microsoft/TypeScript/pull/17819 |
| https://github.com/andriy-kudrya |
| andriy-kudrya | https://github.com/andriy-kudrya |
| on Sep 11, 2018 | https://github.com/microsoft/TypeScript/issues/25299#issuecomment-420371397 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| on Sep 11, 2018 | https://github.com/microsoft/TypeScript/issues/25299#issuecomment-420371897 |
| #17819 | https://github.com/microsoft/TypeScript/pull/17819 |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| TypeScript 3.1 | https://github.com/microsoft/TypeScript/milestone/74 |
| TypeScript 3.2 | https://github.com/microsoft/TypeScript/milestone/77 |
| on Sep 13, 2018 | https://github.com/microsoft/TypeScript/issues/25299#event-1844845195 |
| https://github.com/weswigham |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| on Sep 13, 2018 | https://github.com/microsoft/TypeScript/issues/25299#issuecomment-421176563 |
| Ryan Cavanaugh (@RyanCavanaugh) | https://github.com/RyanCavanaugh |
| #17819 | https://github.com/microsoft/TypeScript/pull/17819 |
| Wesley Wigham (weswigham) | https://github.com/weswigham |
| Domain: Conditional TypesThe issue relates to conditional types | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Conditional%20Types%22 |
| on Nov 1, 2018 | https://github.com/microsoft/TypeScript/issues/25299#event-1941596942 |
| Daniel Rosenwasser (DanielRosenwasser) | https://github.com/DanielRosenwasser |
| TypeScript 3.2 | https://github.com/microsoft/TypeScript/milestone/77 |
| TypeScript 3.2.1 | https://github.com/microsoft/TypeScript/milestone/84 |
| on Nov 14, 2018 | https://github.com/microsoft/TypeScript/issues/25299#event-1964634570 |
| Daniel Rosenwasser (DanielRosenwasser) | https://github.com/DanielRosenwasser |
| TypeScript 3.2.1 | https://github.com/microsoft/TypeScript/milestone/84 |
| TypeScript 3.3.0 | https://github.com/microsoft/TypeScript/milestone/79 |
| on Nov 29, 2018 | https://github.com/microsoft/TypeScript/issues/25299#event-1994045806 |
| Ryan Cavanaugh (RyanCavanaugh) | https://github.com/RyanCavanaugh |
| TypeScript 3.3 | https://github.com/microsoft/TypeScript/milestone/79 |
| TypeScript 3.4.0 | https://github.com/microsoft/TypeScript/milestone/86 |
| on Feb 1, 2019 | https://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, 2019 | https://github.com/microsoft/TypeScript/issues/25299#event-2201526701 |
| Ryan Cavanaugh (RyanCavanaugh) | https://github.com/RyanCavanaugh |
| TypeScript 3.4.0 | https://github.com/microsoft/TypeScript/milestone/86 |
| Backlog | https://github.com/microsoft/TypeScript/milestone/29 |
| on Mar 13, 2019 | https://github.com/microsoft/TypeScript/issues/25299#event-2201526803 |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| completed | https://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted |
| #30568 | https://github.com/microsoft/TypeScript/pull/30568 |
| on Mar 28, 2019 | https://github.com/microsoft/TypeScript/issues/25299#event-2237392128 |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| FixedA PR has been merged for this issue | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22 |
| on Mar 28, 2019 | https://github.com/microsoft/TypeScript/issues/25299#event-2237396904 |
| Anders Hejlsberg (ahejlsberg) | https://github.com/ahejlsberg |
| Backlog | https://github.com/microsoft/TypeScript/milestone/29 |
| TypeScript 3.5.0 | https://github.com/microsoft/TypeScript/milestone/89 |
| on Mar 28, 2019 | https://github.com/microsoft/TypeScript/issues/25299#event-2237397379 |
| microsoft | https://github.com/microsoft |
| on Oct 21, 2025 | https://github.com/microsoft/TypeScript/issues/25299#event-20415719840 |
| Sign up for free | https://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/25299 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/25299 |
| BugA bug in TypeScript | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22 |
| Domain: Conditional TypesThe issue relates to conditional types | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Conditional%20Types%22 |
| FixedA PR has been merged for this issue | https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22 |
| TypeScript 3.5.0 | https://github.com/microsoft/TypeScript/milestone/89 |
|
| 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 |