Imagine you have a string union type called Fruit:
type Fruit = 'apple' | 'banana' | 'pear'
How can you create a type declaration to transform the above into an object type where these strings serve as keys (with their values also being strings)?
An example of how this manually defined type would look is:
type FruitObject = {
apple: string;
banana: string;
pear: string;
}