Closed rbals0445 closed 1 year ago
I found incorrect information in kr translation version and correct it.
distributive conditional types in union only applies to left-hand-side (ex: T extends U, T is LHS ) 2 extends 1 | 2 is not distributive conditional type.
T
2 extends 1 | 2
In en version already fixed it.
People who are learning TS for the first time will get the wrong information, so it needs to be corrected quickly.
As you know, if you want to solve all TCs, you have to use keywords like infer ,rest parameters, recursive...
infer
rest parameters
it is too long to write down all the solutions. so i just finished by correcting information.
Thank you!!
@rbals0445 thanks for the contribution!
Yeah, it is hard to keep track of information when you have different locales and different people working on them.
Challenge [CHALLENGE_NAME]
I found incorrect information in kr translation version and correct it.
distributive conditional types in union only applies to left-hand-side (ex:
T
extends U, T is LHS )2 extends 1 | 2
is not distributive conditional type.In en version already fixed it.
People who are learning TS for the first time will get the wrong information, so it needs to be corrected quickly.
As you know, if you want to solve all TCs, you have to use keywords like
infer
,rest parameters
, recursive...it is too long to write down all the solutions. so i just finished by correcting information.
Thank you!!
Checklist