TS Literal Type


### TS Literal Types
|Title|
|:-:|
|[TS Template Literal Type](https://texonom.com/ts-template-literal-type-a3200d7c04694c259f0c1d9755f18341)|



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




```typetype TrimLeft<T extends string> =    T extends ` ${infer Rest}` ? TrimLeft<Rest> : T;// Test = "hello" | "world"type Test = TrimLeft<"   hello" | " world">;```







