Skip to content

ts challenges 43 #13619

Answered by JonghwanWon
maskle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @maskle

T extends (U | infer A) is always true.

T inferred to be A because (U | infer A) is union.
That is, T expands T. So it becomes true.

Hope this helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maskle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants