How to extract a new type alias from an object's value
const test = { 'a': ['music','bbq','shopping'], 'b': ['move','work'] };
如何从 test 对象中得到
type Types = 'music' | 'bbq' | 'shopping' | 'move' | 'work'