I have a union type of multiple event objects:
type Event = { type: 'foo' } | { type: 'bar'; userId: string } // etc...
I now want to create a type, that is the same union type as Event, but where each type property is prefixed. Like:
type PrefixedEvent = { type: 'user foo' } | { type: 'user bar'; userId: string } // etc...
is that possible?