I\'m trying to get better at Typescript types, and have a need for a type safe event emitter. I\'ve tried many different ways now but I just can\'t seem to get the types to reso