ghaiklor / type-challenges-solutions

Solutions for the collection of TypeScript type challenges with explanations
https://ghaiklor.github.io/type-challenges-solutions/
Creative Commons Attribution 4.0 International
471 stars 56 forks source link

[typo]: ko/easy-includes.md #327

Closed rbals0445 closed 1 year ago

rbals0445 commented 1 year ago

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

ghaiklor commented 1 year ago

@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.