Add types for lifecycle events.

Could also be "Callback" I suppose.