Whit an object like this
const USER_EVENT = {
pageview: 'Visit',
order: 'Order'
}
if I would to get a type with union of all keys
type UserEventKey = 'pageview' | 'order'
I could do this
type UserEventKey = keyof typeof USER_EVENT
...but is it possible to get this type with union of all values?
type UserEventName = 'Visit' | 'Order'
type UserEventName = ???? is it possibile?