Adding types to the messages published with event aggregator (TypeScript)

You don’t need the enum. If you pass an object, the constructor will be used as the key. Same result.

1 Like