TS Conditional Type


분기를 수행하면서, 타입을 추론하는 방법
### TS Conditional Types
|Title|
|:-:|
|[TS Recursive Conditional Type](https://texonom.com/ts-recursive-conditional-type-af9aff2db5ee4f7ab3acc9134471679c)|
```typetype Example1 = Dog extends Animal ? number : string;```


```typetype Entry = "In" | "Out";type InOrOut<Type extends `fade${string}`> = Type extends `fade${infer Return}` ? Return : never;// type I = "In"type In = InOrOut<"fadeIn">;// type O = "Out"type Out = InOrOut<"fadeOut">;```







