You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ryan Lee edited this page Dec 28, 2022
·
1 revision
Why do we use T extends T everywhere? Doesn't this case always resolve to true?
T extends T forces the type resolution to use a distributive conditional type for arrays. i.e. it will output string[] | number[] instead of (string | number)[].