Add types for lifecycle events.

OK, fair enough.