Skip to content

Add rule that a type is assignable to A extends B ? C : D if it is assignable to both C and D. - #27589

Closed
Matt McCutchen (mattmccutchen) wants to merge 1 commit into
microsoft:masterfrom
mattmccutchen:issue-26933
Closed

Matt McCutchen (mattmccutchen) wants to merge 1 commit into
microsoft:masterfrom
mattmccutchen:issue-26933

Conversation

@mattmccutchen

Copy link
Copy Markdown
Contributor

(With some restrictions.)

Fixes #26933.

assignable to both C and D.

(With some restrictions.)

Fixes microsoft#26933.
@RyanCavanaugh

Copy link
Copy Markdown
Member

Closing in favor of #27932 - sorry for letting this sit open so long

@typescript-bot

Copy link
Copy Markdown
Contributor

The TypeScript team hasn't accepted the linked issue #26933. If you can get it accepted, this PR will have a better chance of being reviewed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants