Type-hint $event in raise()