Add types for lifecycle events.
Merge pull request #1041 from brendandburns/api

Add types for lifecycle events.