Implement Replace<S, From, To> which replace the string From with To once in the given string S
Replace<S, From, To>
From
To
S
For example
type replaced = Replace<'hello, {name}!', '{name}', 'Vlad'> // expected: 'hello, Vlad!'
Code