Add types for lifecycle events.

ok, bowing to pressure, I removed Type.