Is it possible to create a new type alias based on an object's values?
const test = {
'a': ['music','bbq','shopping'],
'b': ['move','work']
};
How can we extract this information from the 'test' object?
type Types = 'music' | 'bbq' | 'shopping' | 'move' | 'work'