Replace a string with another string
The replaced string
type Value = 'foobar';
type Target = 'foo';
type Replacement = 'bar';
type Result = Replace<Value, Target, Replacement>; // 'barbar'
type Value = 'foofoofoo';
type Target = 'foo';
type Replacement = 'bar';
type Result = Replace<Value, Target, Replacement, false>; // 'barfoofoo'
Replace