Transforming a Single Property into Two Derived Properties

How would I best go about transforming one property into two "derived" properties?

So e.g. turning

{
magicString: "1234"
}


into

{
string: "1234",
description: "some description for this number based on a transform"
}


Transforming

{
magicString: "1234"
}


into

{
description: "some description for this number based on a transform"
}


Is not the issue, but I currently fail in transforming into two distinc things (or renaming and transforming based on the same property)
Was this page helpful?