Open shaKY-iota opened 2 years ago
// your answers type Replace<S extends string, From extends string, To extends string> = From extends '' ? S : S extends `${infer First}${From}${infer Last}` ? `${First}${To}${Last}` : S