Suppose I have two types: type Credentials = { Username: string; Password: string; }; type XmlCredentials = { [k in keyof Credentials]: { _text: string } }; and I want to convert from Credentials to XmlCredentials, wrapping string values of input properties with { _text: _ ...
Home/object