Add types for lifecycle events.

done, my bad, too many back and forths on the names.